Google 更新后的服务
Google Services After Updating
今天我试图在我的应用程序中实施应用程序内购买。我试着按照 google 的教程进行操作,一切顺利。与此同时,我正在更新一些 SDK。在所有这些之后,某个地方出了问题,我的所有 Java 文件都给出了关于 com.google.android.gms 的错误。这已经工作正常。我试过了;
- 清理,重建项目。
- 删除所有关于应用内购买的东西
- 无效caches/restart
错误类似于:无法解析符号 xxx(adrequest、adview 等)
最后,我使用的是 Android Studio 1.2.0,我的依赖项看起来像;
dependencies {
compile project(':baseGameUtil')
compile 'com.android.support:support-v4:21.0.3'
compile 'com.google.android.gms:play-services:+'
}
我解决这个问题的方法基本上是将我的项目移到另一个位置,并尽可能将 GooglePlayServicesClient 更改为 GoogleApiClient。现在它编译并且工作正常,希望这会帮助其他人。此站点还解释了如何更新到新的 GoogleApiClient。
今天我试图在我的应用程序中实施应用程序内购买。我试着按照 google 的教程进行操作,一切顺利。与此同时,我正在更新一些 SDK。在所有这些之后,某个地方出了问题,我的所有 Java 文件都给出了关于 com.google.android.gms 的错误。这已经工作正常。我试过了;
- 清理,重建项目。
- 删除所有关于应用内购买的东西
- 无效caches/restart
错误类似于:无法解析符号 xxx(adrequest、adview 等)
dependencies {
compile project(':baseGameUtil')
compile 'com.android.support:support-v4:21.0.3'
compile 'com.google.android.gms:play-services:+'
}
我解决这个问题的方法基本上是将我的项目移到另一个位置,并尽可能将 GooglePlayServicesClient 更改为 GoogleApiClient。现在它编译并且工作正常,希望这会帮助其他人。此站点还解释了如何更新到新的 GoogleApiClient。