Deepak Acharya
Deepak Acharya

Reputation: 93

A problem occurred configuring project ':CordovaLib'. in ionic cordova

enter image description here

My SDK is updated but i seems again and again showing this error. When i run the ionic cordova build android it seems giving me this error. I have also added the screenshot.

Also update the my NDK android-sdk->ndk-bundle->toolchains

org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':CordovaLib'.
    at 

Upvotes: 2

Views: 1339

Answers (1)

navylover
navylover

Reputation: 13539

This is because jCenter delete this package, the build is now dependent on the google repository,so make google() as your preferred.

     //Edit platforms/android/CordovaLib/build.gradle
     repositories {
        google()
        maven {
              url “https://maven.google.com”
        }
        jcenter () 
     } 


    //And edit platforms / android / build.gradle
    buildscript {
       repositories {
        google()
        maven {
        url “https://maven.google.com”
        }
        jcenter ()
    }

    allprojects {
       repositories {
       google()
       maven {
         url “https://maven.google.com”
       } 
      jcenter ()
    }

Upvotes: 1

Related Questions