android - Ionic build android 与谷歌服务版本冲突
问题描述
在运行 Ionic build android 时,我遇到了以下错误。
我尝试将 google 服务的版本更改为 9.0.0,但在运行 build 后,版本被替换为 +。
如果这可行,我可以将我的应用程序发布到谷歌商店,只是坚持这一点。
任何帮助将不胜感激。谢谢你。
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
Total time: 2.265 secs
Error:
/Users/User1/Projects/MinuteFormsTabsIonic/platforms/android/gradlew:
Command failed with exit code1 Error output:
FAILURE:构建失败并出现异常。
出了什么问题:任务“:processDebugGoogleServices”执行失败。
请通过更新 google-services 插件的版本来解决版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/ )或将 com.google.android.gms 的版本更新为 9.0.0。
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
在 Build.gradle 文件中,我有这样的依赖项
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
compile "com.android.support:support-v4:24.1.1+"
compile "com.google.firebase:firebase-core:+"
compile "com.google.firebase:firebase-messaging:+"
compile "com.google.android.gms:play-services-auth:+"
compile "com.google.android.gms:play-services-identity:+"
// SUB-PROJECT DEPENDENCIES END
}