草庐IT

multiple-versions

全部标签

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 - 无法执行 dex : Multiple dex files define

我尝试运行我的android应用程序,但出现此错误。[2014-03-1111:21:34-DexLoader]Unabletoexecutedex:MultipledexfilesdefineLorg/apache/cordova/App$1;[2014-03-1111:21:34-Android-C2DM-PhoneGap]ConversiontoDalvikformatfailed:Unabletoexecutedex:MultipledexfilesdefineLorg/apache/cordova/App$1;我正在使用这个项目作为我的引用。http://devgirl.or

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 - 模拟器 : emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature

我删除了模拟器并重新安装它并得到了同样的错误。Emulator:emulator:ERROR:RunningmultipleemulatorswiththesameAVDisanexperimentalfeature.Emulator:Processfinishedwithexitcode1. 最佳答案 删除.lock文件对我有用。找到avd并删除锁定文件。在Mac.android/avd/'NAMEOFAVD.avd目录中。我删除的文件是hardware-qemu.ini.lock和multiinstance.lock。

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

Android 库项目 com.android.dex.DexException : Multiple dex files define Lcom/google/gson/JsonSerializer

我正在AndroidStudio中编写一个库项目。我的gradle文件包括gsonvolleyplay-services等...将我的库嵌入项目时,我得到:com.android.dex.DexException:MultipledexfilesdefineLcom/google/gson/JsonSerializer;有人可以解释一下gradle在创建库项目时是如何工作的吗?我应该如何解释集成我的SDK的开发人员,exclude模块如何工作,以及为什么它在包含我的aar的应用程序中不起作用? 最佳答案 有两种情况需要考虑首先,如果

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

安卓 : Multiple Actions on a List View - Focus Issue

我想实现一个ListView,我可以用我的光标来实现它。现在,根据您单击的那一行,它会将您带到一个新的Activity,该Activity基于该行上按下的信息(就像它应该的那样,并且如预期的那样)。但是我想要一个按钮来删除该行,因此用户可以按该行的任何部分来启动新Activity,但是如果他们按下该行上的按钮,它会删除该行(或启动删除Activity/函数)。如果您可以查看@DroidRecord,它们的布局与我希望实现的布局相似。谢谢!克里斯。 最佳答案 正如MarianoKamp所说,将按钮添加到一行会使其“不可触摸”,但根据我

安卓工作室 : 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错误?