Hey! when I was building ionic 3 application using native plugins, I faced a strange issue during building my application to generate APK file out of it. Then I noticed that this issue was caused after adding Ionic’s Native “Background Geolocation” . So when I removed this plugin, APK generated successfully. I was in deadly need on this service. After hitting my head here and there I found a solution in Ionic threads.
I faced following issue in my building process:
.... .... :generateDebugResValues :processDebugGoogleServices Found com.google.android.gms:play-services-location:+, but version 9.0.0 is need ed for the google-services plugin. :processDebugGoogleServices FAILED FAILURE: Build failed with an exception. * What went wrong: BUILD FAILED ..... .....
As issue states that there is some mismatch in Google play services version right?
So what we need to do is go to this file AppRoot/~ platforms/android/project.properties
properties file mainly defines version of services which we need to include in build.griddle file. So even if you try to chnage value in build.griddle file it will be chnages automaticaly, as it takes value from properties file.
In my case i changed values in project.properties like below:
Then it worked! Hope this will save a lot of your time 😀