Trove4j library could not be solved

When trying to compile my application, the following error appears:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':myProject'.
> Could not resolve all files for configuration ':myProject:classpath'.
   > Could not find org.jetbrains.trove4j:trove4j:20160824.
     Searched in the following locations:
         https://repo1.maven.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
         https://repo1.maven.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
         https://maven.fabric.io/public/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
         https://maven.fabric.io/public/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
         https://maven.google.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
         https://maven.google.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
     Required by:
         project :metam > com.android.tools.build:gradle:3.0.0-beta2 > com.android.tools.build:gradle-core:3.0.0-beta2 > 
com.android.tools.lint:lint:26.0.0-beta2 > com.android.tools.lint:lint-checks:26.0.0-beta2 > com.android.tools.lint:lint-
api:26.0.0-beta2 > com.android.tools.external.com-intellij:intellij-core:26.0.0-beta2

A library that lacks an IDE?

+47
source share
7 answers

this problem can be solved by adding jcenter () as a repository in the buildscript section.

buildscript {
  repositories {
     jcenter()
  }

  dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0-beta2'
  }
}
+94
source

In addition to Snikolas answer :

If you have something like:

allprojects {
    repositories {
        mavenCentral()
        google()
        jcenter() //also add it here!!!
    }
}

In your file build.gradle; and add it there.

+46
source

.idea,.gradle gradle .

+3

Help-> About Android Studio . build.gradle App Mudule & build.gradle, classpath :

buildscript {
     ...
    repositories {
     ...
    }
    dependencies {
     ...
     classpath "com.android.tools.build:gradle:{THREE.DIGIT.VERSION}"
    }
}

Like in image

+3

build.gradlew

repositories {
    jcenter()
}

mavenCentral() jcenter() Google()

+3

mavenCentral() jcenter() build.gradle

allprojects {
    repositories {

        jcenter() 
      //.......
    }
}
+2

, Gradle Plugin, :

  1. -lock.json yarn.lock
  2. npm i ,
  3. ios- ios_,
  4. react-native link, Android
  5. ios_ ios
  6. (project/build.gradle), Gradle Plugin . 3.4.1.
  7. Gradle (gradle/wrapper/gradle-wrapper.properties), 5.4.1.
  8. Android Android Studio, ""> " "
  9. , , /.

, - .

0

All Articles