我正试图在android仿真器AVD上升级Google服务。我使用的AVD版本是带有Google的Nexus6API22 x86。我在模拟器中的logcat中遇到的错误是
W/GooglePlayServicesUtil﹕ Google Play services out of date. Requires 7895000 but found 6774470我的应用程序显示了一个名为“更新Google服务”的对话框,并带有文本。
除非您更新Google服务,否则Robo测试应用程序不会运行。
还显示了“更新文本”按钮。
单击它会在模拟器中生成更多错误。
E/SettingsRedirect﹕ Can't redirect to app settings for Google Play services我下载了更高版本的Google服务,并尝试使用
./adb install -r ~/work/com.google.android.gms-7.8.99_\(2134222-470\)-7899470-minAPI21.apk但是我得到了以下错误
1937 KB/s (47783328 bytes in 24.080s)
pkg: /data/local/tmp/com.google.android.gms-7.8.99_(2134222-470)-7899470-minAPI21.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]我的build.gradle文件包含
dependencies {
compile project(':Library')
compile 'com.netflix.rxjava:rxjava-android:0.20.7'
compile 'com.squareup.retrofit:retrofit:1.8.0'
compile 'com.google.android.gms:play-services-plus:7.8.0'
compile 'com.google.android.gms:play-services-identity:7.8.0'
compile 'com.google.android.gms:play-services-base:7.8.0'
compile 'com.google.android.gms:play-services-location:7.8.0'
provided 'org.roboguice:roboblender:3.0.1'
provided 'junit:junit:4.11'
provided 'org.robolectric:robolectric:2.4'
}我的开发机器操作系统是OSX10.10.5,运行JDK1.8u 40。我的Android版本是1.3.1
还有谁能告诉我其他我可以尝试的吗?
发布于 2018-04-03 06:08:43
一件对我有用的事情是,我开了一家游戏商店,注册,然后手动升级了"Google play Services“应用程序。 查看这个答案以获得更多信息:https://www.stackoverflow.com/a/35498283
希望这能帮上忙!
https://stackoverflow.com/questions/32106514
复制相似问题