2017-08-19 4 views
0

Ich versuche, meine cordova App für Android zu kompilieren, aber ich habe den nächsten Fehler:Cordova bauen fehlgeschlagen processDebugResources

Execution failed for task ':processDebugResources'. Error: more than one library with package name 'com.google.android.gms' 

Das ist mein Plugin-Liste

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"

Das passiert immer, wenn ich versuche, mit "onesignal-cordova-plugin" und "cordova-google-play-serivces" zu kompilieren.

Ich habe versucht, meine build.gradle von diesem Wechsel:

compile "com.google.android.gms:play-services-gcm:+" 
compile "com.google.android.gms:play-services-location:+" 

dazu:

compile "com.google.android.gms:play-services-gcm:10.2+" 
compile "com.google.android.gms:play-services-location:10.2+" 

und einige andere Versionen, aber keiner hat funktioniert.

Antwort

0

es gelöst durch

onesignal-cordova-plugin 2.1.2 "OneSignal Push Notifications" 

für

onesignal-cordova-plugin-pgb-compat 1.13.1 "OneSignal Push Notifications PGB Compat" 
Ändern
Verwandte Themen