2017-08-19 237 views
0

我試圖編譯我科爾多瓦的應用程序爲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+" 

和一些其他的版本,但沒有工作過。

回答

0

通過改變

onesignal-cordova-plugin 2.1.2 "OneSignal Push Notifications" 

onesignal-cordova-plugin-pgb-compat 1.13.1 "OneSignal Push Notifications PGB Compat" 
解決它
相關問題