Android Studio - Could not find intellij-core.jar

后端 未结 12 973
小蘑菇
小蘑菇 2020-12-03 00:40

I am using android studio 3.1.4.

Error:Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1). Searched in the following loc

12条回答
  •  感动是毒
    2020-12-03 01:12

    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!

提交回复
热议问题