首页 > 解决方案 > 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:构建失败并出现异常。

在 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
}

标签: androidionic-frameworkbuildionic3

解决方案


推荐阅读