How to solve com.google.android.gms error in ionic 3?


#1

When i run “ionic cordova build android --prod” to build apk i got following error:-

Could not find play-services-auth-base-license.aar (com.google.android.gms:pla
y-services-auth-base-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar


#2

Hi, Did you get this resolved?
If yes, please post/reply with some clues or your solution.
Thanks.


#3

Hi, @podehnal
No i didn’t get solution yet


#4

In another project, the following enabled me to build my android apk.

In D:\projectFolder\platforms\android\build.gradle

buildscript {
repositories {
/* jcenter() ** moved this to bottom */
maven {
url “https://maven.google.com
}
jcenter()
}

allprojects {
repositories {
/* jcenter() ** moved this to bottom */
maven {
url “https://maven.google.com
}
jcenter()
}
}

But, in a new project, this solution is not working.
So, I’m still searching for resolution.