Essent / nativescript-urban-airship

Urban airship plugin interface for NativeScript
Other
6 stars 3 forks source link

Build Error on Android with Nativescript 3.0 #16

Open francorobles opened 7 years ago

francorobles commented 7 years ago

Can build on Android. With the below error. Failed to apply plugin [id 'com.google.gms.google-services'] Warning: > Warning: Version: 7.8.0 is lower than the minimum version (9.0.0) required for google-services plugin.

spike1292 commented 7 years ago

I'm not able to replicate the issue. I think it not related to Nativescript but rather the version of the urban airship sdk and the android sdk version installed on your machine.

You could try to update the urban airship sdk and play services here: https://github.com/Essent/nativescript-urban-airship/blob/c084afbe0aa77a9c5e2a3ea9dd16e62eb497d09f/platforms/android/include.gradle#L12-L15 with this:

compile 'com.urbanairship.android:urbanairship-sdk:8.6.+'
compile 'com.google.android.gms:play-services-gcm:11.0.1'

Let me know if this solves the problem. I will gladly accept a PR 😉

francorobles commented 7 years ago

Hello @spike1292, got a new error.

Class com.google.android.gms.iid.zzc conflict: /mnt/storage/builds//1f6b1e25f09bbabf1e4d02f53dc071510302748e/NativeScript300/output/NativeScript300/platforms/android/build/intermediates/exploded-aar/com.google.android.gms/play-services-tasks/11.0.1/jars/classes.jar and /mnt/storage/builds//1f6b1e25f09bbabf1e4d02f53dc071510302748e/NativeScript300/output/NativeScript300/platforms/android/build/intermediates/exploded-aar/com.google.android.gms/play-services-iid/9.8.0/jars/classes.jar