我试图编译我科尔多瓦的应用程序为Android,但我得到了一个错误:科尔多瓦构建失败processDebugResources
Execution failed for task ':processDebugResources'. Error: more than one library with package name 'com.google.android.gms'
这是我的插件列表
com.pylonproducts.wifiwizard 0.2.11 "WifiWizard" cordova-google-play-services 25.0.0 "Google Play Services for Android" cordova-plugin-compat 1.1.0 "Compat" cordova-plugin-device 1.1.2 "Device" cordova-plugin-facebook4 1.9.1 "Facebook Connect" cordova-plugin-geolocation 2.4.3 "Geolocation" cordova-plugin-network-information 1.2.1 "Network Information" cordova-plugin-splashscreen 3.2.2 "Splashscreen" cordova-plugin-statusbar 2.1.3 "StatusBar" cordova-plugin-whitelist 1.2.2 "Whitelist" ionic-plugin-keyboard 2.2.1 "Keyboard" onesignal-cordova-plugin 2.1.2 "OneSignal Push Notifications"
每当我尝试编译'onesignal-cordova-plugin'和'cordova-google-play-serivces'时,都会发生这种情况。
我试图从这个改变我的build.gradle:
compile "com.google.android.gms:play-services-gcm:+"
compile "com.google.android.gms:play-services-location:+"
这样:
compile "com.google.android.gms:play-services-gcm:10.2+"
compile "com.google.android.gms:play-services-location:10.2+"
和一些其他的版本,但没有工作过。