草庐IT

setup_requires

全部标签

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 - android.test.AndroidTestCase 中的方法 setUp 未被模拟

我正在尝试接受AndroidStudio的新单元测试功能。我已按照http://tools.android.com/tech-docs/unit-testing-support上的说明进行操作.那里的描述明确提到了“方法...未模拟”错误,并建议将以下内容放入build.gradle:android{//...testOptions{unitTests.returnDefaultValues=true}}只要从命令行启动时运行测试,这就有效gradlewtest--continue但当我通过右键单击->运行从AndroidStudio运行测试类时却没有。这样,我又得到了同样的错误:ja

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

java - Alertdialog.Builder 设置 View : Call requires API level 21

我试图让半径NumberPicker在扩展DialogPreference的类中运行,但我在让setView()工作时遇到了很多麻烦。让我们从一些代码开始:publicclassRadiusPickerPreferenceextendsDialogPreference{publicRadiusPickerPreference(Contextcontext,AttributeSetattrs){super(context,attrs);}@OverrideprotectedvoidonPrepareDialogBuilder(android.app.AlertDialog.Builder

JS的模块化(require & exports)

(1)如何引入其他的模块使用require(),需要传入的参数就是相对路径必须以.或者..开头使用require引入模块以后,该函数会返回一个对象,该对象代表的就是引入的模块在node中,一个js文件就是一个模块在node中,每一个js文件中的js代码都是独立运行在一个函数中变量也是放在函数中,一个模块的变量在其他的函数中无法访问向外部暴露属性或者方法,有一个属性exports,向外面暴露变量和方法只要将变量或者方法设置为exports的属性即可。(2)commonjs对模块的定义十分简单模块的引用模块的定义模块的标识:(使用require,模块分为两大类:核心模块,文件模块)核心模块:由no