【发布时间】:2023-12-14 11:04:02
【问题描述】:
我正在使用 ionic3 构建用于生产的应用程序。当我构建 ios 时,一切都很好。但是我用命令构建了 android
ionic cordova build android --prod --release
它有一个错误:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find any version that matches com.google.gms:google-services:11+.
Versions that do not match:
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
+ 42 more
Required by:
project :
我的离子信息是:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.0.1
Cordova Platforms : android 6.3.0 ios 4.5.4
Ionic Framework : ionic-angular 3.8.0
System:
ios-deploy : 1.9.2
Node : v7.10.0
npm : 5.5.1
OS : macOS Sierra
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : legacy
有人遇到过或知道如何解决吗?非常感谢
【问题讨论】:
-
通常是因为一些插件。您是否尝试过另一个 cordova-android(6.4.0 或更高版本)?
标签: android ionic-framework ionic3