Issues when compiling on Android

1

I have this problem when I try to compile an Apk from my Android project.

Could someone help me solve this:

Gradle sync failed: 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.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 : > com.android.tools.build:gradle:3.0.1 > com.android.tools.build:gradle-core:3.0.1 > com.android.tools.lint:lint:26.0.1 > com.android.tools.lint:lint-checks:26.0.1 > com.android.tools.lint:lint-api:26.0.1 > com.android.tools.external.com-intellij:intellij-core:26.0.1
            Consult IDE log for more details (Help | Show Log) (28s 65ms)
    
asked by Oscar Barahona 12.06.2018 в 00:35
source

1 answer

1

Within your build.gradle file, add jcenter() so you can find the package trove4j , jcenter enables you to download this type of libraries for use in your project.

This must be added in your build.gradle , within buildscript { ... repositories { :

buildscript {
  repositories {

     jcenter()

  }
    
answered by 12.06.2018 в 19:08