Could not find intellij-core.jar

Hi Everyone!

I am getting this error:

Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core-26.0.1.jar

Please help me to solve this

2 Likes

I am also having the same issue

Edit platforms/android/CordovaLib/build.gradle

I.e. change:

repositories {
    jcenter()
    maven {
        url "https://maven.google.com"
    }
}

To:

repositories {
    maven {
        url "https://maven.google.com"
    }
    jcenter()
}

It worked for me after editing doing.

3 Likes

Thank’s, this resolve my problem.

tried, still not working

Same problem. jCenter delete this package from your repository, I guess they will update soon

Same problem, our CI CD is broken because of this. The same CI/CD pipeline has been working for months. but broken since this morning because of Could not find intellij-core.jar

hey guys I came across the same problem, which is actually a conflict between the ionic, gradle and gradle plugin. It turns out that in the new version of the gradle plugin the build is now dependent on the google repository. To get around the problem you need to change 2 files:

Make sure they are as described below!

1 ° - “platforms / android / CordovaLib / build.gradle”

buildscript {
repositories {
Google()
maven {
url “https://maven.google.com
}
jcenter ()
}

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

and

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

This is it. Hope this helps!

google notes about updating pluguin

2 Likes

Confirmed this is working. However, change Google() to google()

It worked for me after editing doing.

I had to change in 3 files. Had to maintain the order of repository too. First google, then maven, then jcenter

  1. platforms\android\CordovaLib\build.gradle
  2. platforms\android\build.gradle
  3. platforms\android\app\build.gradle

platforms\android\CordovaLib\build.gradle>>

buildscript {
    repositories {
        google()
        maven {
            url "https://maven.google.com"
        }
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    }
}

platforms\android\build.gradle>>

buildscript {
    repositories {
        google()
        maven {
            url "https://maven.google.com"
        }
		jcenter()
    }
    dependencies {

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.android.tools.build:gradle:3.0.0'
    }
}

allprojects {
    repositories {
        google()
        maven {
            url "https://maven.google.com"
        }
		jcenter()
    }
    //This replaces project.properties w.r.t. build settings
    project.ext {
      defaultBuildToolsVersion="25.0.2" //String
      defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
      defaultTargetSdkVersion=26 //Integer - We ALWAYS target the latest by default
      defaultCompileSdkVersion=26 //Integer - We ALWAYS compile with the latest by default
    }
}

platforms\android\app\build.gradle>>

buildscript {
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://maven.google.com"
        }
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    }
}

Note: These are only some portion of the .gradle files NOT ALL