Hello, I am getting the following error when compiling for Android 6.3.0:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
My Ionic info:
cli packages: (C:\Users\Dialogo\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.3
ionic (Ionic CLI) : 3.20.1
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.10
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.11.1
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
I know a possible fix is moving jcenter() after the repositories{...} in the gradle.build but I don’t like this workarround since it has to be done every time you build a new project.
The problem is that it tries to find Play services 15.0.1 in a repository which doesn’t exist like the error indicates. With the plugin I put in the solution you can specify which play services version you want and it’ll somehow download and use that play services version.
Your way (which is the one I knew as I say in the first post) is a dirty workaround in my opinion, since you have to do that manually every time you add an Android platform. With the plugin from the solution you just specify the version for play services (I chose 15.0.0 which is the best and one of latest as I read somewhere) and forget about this problem forever.
Also I read it’s handy to solve problems if you have some plugins related to Google installed since some might have integrated different play services versions and they can cause incompatibilities among each other. With this you force them all to use the same version so no more compatibility issues.