草庐IT

MYAPP_VERSION

全部标签

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 - 不幸的是,MyApp 已停止 - logcat 中没有错误日志

每隔一段时间我会得到:Unfortunately,MyApphasstopped.Problemiseasytosolveifyouhavesomelogs,但在我的例子中,logcat绝对没有错误消息(它有我的应用程序发布的正常消息,那里显示了其他异常,但没有显示导致此apphasstopped的这个)。我有机会解决这个问题吗?好处是我可以很容易地重现它,因此我尝试将尽可能多的信息放入logcat,然后调查发生了什么。我已启动并运行ACRA(它捕获了其他异常,但此应用已停止)。当它发生时,我的应用程序不可见,并且在IntentService中发生了一些事情.我的应用正在跟踪geofe

android - 错误 : fix the version conflict (google-services plugin) using productFlavors

我知道存在版本冲突,但在Google推出新版本后问题仍然存在。Error:Executionfailedfortask':app:processCurrentDebugGoogleServices'.Pleasefixtheversionconflicteitherbyupdatingtheversionofthegoogle-servicesplugin(informationaboutthelatestversionisavailableathttps://bintray.com/android/android-tools/com.google.gms.google-service

android - 本地单元测试中 Build.VERSION.SDK_INT 的 stub 值

我想知道是否有办法stubBuild.Version.SDK_INT的值?假设我在ClassUnderTest中有以下几行:if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.JELLY_BEAN){//dowork}else{//doanotherwork}如何覆盖所有代码?我的意思是我想使用不同的SDK_INT运行两个测试以进入两个block。是否可以在androidlocal单元测试中使用Mockito/PowerMockito?谢谢 最佳答案 使用反射更改值。staticvoidset

java - 无法为 intellij 解析符号 @integer/google_play_services_version

A不确定为什么会出现此错误...这是我的AndroidManifest.xml文件。我添加了GooglePlayServices、Repository和AndroidSupportLibrary。不确定我是否需要另一个插件或什么 最佳答案 尝试在build.gradle文件中添加:dependencies{compile'com.google.android.gms:play-services:7.5.0'} 关于java-无法为intellij解析符号@integer/google_p

安卓工作室 : Unable to obtain result of 'adb version'

我正在尝试使用AndroidStudio在Android应用程序上开始开发,但每当我尝试运行该应用程序时,我都会收到错误消息Unabletoobtainresultof'adbversion'我尝试卸载并在不同的计算机(都运行Windows10)上多次重新安装AndroidStudio,每次我都遇到相同的错误。我研究了这个问题,但一直无法找到一致的解决方案。(或实际有效的)我是Android开发的新手,不知道该怎么做;任何解决这个问题的帮助将不胜感激。 最佳答案 感谢@user3109468找到了解决方案,AndroidStudio

android - 如何修复此错误 Error Unsupported major.minor version 52.0 in Android studio?

这个问题在这里已经有了答案:Unsupportedmajor.minorversion52.0whenrenderinginAndroidStudio(25个答案)关闭6年前。如何修复更新预览版3后Androidstudio中的gradle错误?

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

android - Unresolved reference : JavaVersion. VERSION_1_8

如何修复以下错误?android{...compileOptions{sourceCompatibilityJavaVersion.VERSION_1_8targetCompatibilityJavaVersion.VERSION_1_8}...}AndroidStudio-->文件-->项目结构-->模块-->Unresolved引用:JavaVersion.VERSION_1_8 最佳答案 我将ext.java_version变量添加到根build.gradle的buildscript部分buildscript{...ext.j

android - 发现多个文件的操作系统独立路径为 'org/apache/http/client/version.properties'

在将AndroidStudio从2.3更新到3.0之前一切正常。我在AndroidStudio中运行应用程序时出现此错误,编译通过。我不明白为什么会出现此错误。我在互联网上什么也没找到。这是我的gradle文件。packagingOptions{exclude'META-INF/DEPENDENCIES.txt'exclude'META-INF/LICENSE.txt'exclude'META-INF/NOTICE.txt'exclude'META-INF/NOTICE'exclude'META-INF/LICENSE'exclude'META-INF/DEPENDENCIES'exc