Here the Error i have
my Gradle file
please, anyone, know to solve this problem
Hey, Following link will resolve your issue…
Replacing
mavenCentral() to
maven { url "https://maven.google.com" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
IN
platforms->android->cordova-support-google-services->myAppName-build.gradle
It’s worked for me thanks
Hello. I’m having the same issue and I’ve tried this solution but it didn’t work for me. I’m on ionic4 and there’s no cordova-support-google-services folder so I made the changes in platforms/android/build.gradle
I appreciate further help.
My gradle version is 6.1.1 and the project classpath link to 3.3.0. Could this also be an issue?
Import this code toyour build.gradle file and try to build
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
Thanks for the prompt response @chameera1. I really appreciate.
I tried what you suggested and still didn’t get a successful build. Here’s what I got this time
Here’s what my build.gradle looks like now, after your suggestion.
I made the changes to 2 build.gradle files: platforms/android/build.gradle and platforms/android/app/build.gradle