草庐IT

require-ified

全部标签

Android Wear 错误 ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null}

我想制作一个简单的可穿戴应用程序并通过数据层进行连接。手持模块(使用:S5)一切正常,但可穿戴设备(使用:Moto360)总是抛出错误:onConnectionFailed:ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED,resolution=null}手持设备上的播放服务是最新的我已经添加了compile'com.google.android.gms:play-services:7.3.0'对于两者,手持设备,作为wearbuild.gradle。可穿戴Activity:@Overrideprotectedvoi

Android 项目提示 "The type bolts.Task cannot be resolved. It is indirectly referenced from required .class files"

我正在尝试通过ParseMealspotting教程,但在添加Parse库后,我遇到了奇怪的错误。我在谷歌搜索时发现了其他类似的错误,但没有任何效果。Here'sone.我也读书看看AddingtheSupportLibraries,但这并没有解决它。准确的文本是:Multiplemarkersatthisline-Thetypebolts.Taskcannotberesolved.Itisindirectlyreferencedfromrequired.classfiles-TheclassfileTaskcontainsasignature'Ljava/util/Set.TaskC

android - Cordova/Ionic 构建错误(有时): don't have required environment

我刚刚开始涉足Cordova/Ionic以使用HTML5/js制作Android/iOS应用程序,到目前为止,我已经让示例/教程应用程序有时可以工作,但不是每次都可以。我在Windows上工作,目前正在尝试为Android构建我的项目。几次尝试后,我无法再构建我的应用程序,甚至是我根本没有更改的完全“空白”模板应用程序。我尝试通过Cordova创建应用cordovacreatehellocom.example.helloHelloWorldcdhellocordovabuildandroid或ionicionicstarttestsidemenucdstartionicbuildand

android - SERVICE_VERSION_UPDATE_REQUIRED 和 Google play 服务在 android 中集成 Google Plus 时已过时

我在Android应用程序中集成了GooglePlus。我使用的是AndroidSDK版本4.2.2。但是我在googleplus上执行分享帖子时遇到了这个错误:GooglePlusServiceOutofdate和ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED,resolution=null}我想在模拟器上运行GooglePlusPosting,而不是在设备上。我们将不胜感激。 最佳答案 我收到这个错误仅仅是因为GooglePlay服务在模拟器上运行时实际上已

android - 如何解决 "WARNING: Application does not specify an API level requirement"?

你好我正在编写一个android应用程序,但是当我运行这个应用程序时,会生成以下应用程序并且应用程序不会出现在Windows上,请帮忙..!!!!如果我得到正确的解决方案,我将不胜感激,,,,,, 最佳答案 要解决此警告,请添加到AndroidManifest.xml中的manifest标签。将4替换为您要支持的最低SDK版本数。 关于android-如何解决"WARNING:ApplicationdoesnotspecifyanAPIlevelrequirement"?,我们在Stac

android - android :name really required? 中的前导点

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:What'sthe“dot”forwhenregisteringanActivity在所有Android示例中,Activity、Services等名称均以点开头:我忘记在所有Android项目中执行此操作-但它们确实运行良好。我的问题:这个前导点真的是必需的吗?编辑:这是我的一个应用程序的一个小快照示例。这个应用程序完美运行。它不使用限定名称,也不使用点:

android - 如何使用 Android Activity 修复 "Call requires API level 11"?

我刚开始做Android开发,或多或少遵循http://developer.android.com/training/basics/firstapp/starting-activity.html教程,有一件事一直困扰着我:我有两个类,都是使用“AndroidActivity”创建向导创建的:publicclassPlacesActivityextendsActivity{@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.lay

android - {"error": {"message" :"(#324) Requires upload file" ,"type" :"OAuthException" ,"code":324}}

privatevoidpostToWall(Stringmsg){Bundleparameters=newBundle();//parameters.putString("method","stream.publish");JSONObjectattachment=newJSONObject();try{byte[]data=null;Bitmapbi=BitmapFactory.decodeResource(getResources(),R.drawable.bluerib);//Bitmapbi=//BitmapFactory.decodeFile("http://demos.co

android - 错误 :Jack is required to support java 8 language features. 启用 Jack 或删除 sourceCompatibility JavaVersion.VERSION_1_8

如developer.android网站所述"TheJacktoolchainisdeprecated,asperthisannouncement.IfyourprojectdependsonJack,youshouldmigratetousingJava8supportbuiltintoAndroidStudio’sdefaulttoolchain."我需要使用lambda表达式,所以我禁用了jack选项,但是当我编译我的代码时,出现以下错误Error:JackisrequiredtosupportJava8languagefeatures.EitherenableJackorrem

java.lang.IllegalStateException : ArrayAdapter requires the resource ID to be a TextView 错误

这个问题在这里已经有了答案:ArrayAdapterrequiresIDtobeaTextViewerror(4个答案)关闭8年前。我试过这个教程http://windrealm.org/tutorials/android/android-listview.php“一个简单的AndroidListView示例”但是在我在Eclipse中的测试中,我在android应用程序中崩溃了。在LogCat中我有这个:04-1120:17:24.170:E/AndroidRuntime(7062):java.lang.IllegalStateException:ArrayAdapterrequir