i am getting Could not get unknown property 'PLAY_SERVICES_VERSION' error in ionic build after installing cordova-plugin-googlemaps in my ionic 3 app. if i remove this plugin then no error is showing in build. after adding this plugin again error is showing.
ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE"
i replaced YOUR_ANDROID_API_KEY_IS_HERE with the key i got from google.
same way i added in another app there it was working. here its not working
In \platforms\android\project.properties, replace PLAY_SERVICES_VERSION by “+” only
com.google.android.gms:play-services-base:+
com.google.android.gms:play-services-ads:+
Another way: install cordova plugin to create version automatically
cordova plugin add cordova-android-play-services-gradle-release
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With