I'm getting this error when I try to build my project:
> Task :@mapbox_react-native-mapbox-gl:extractReleaseAnnotations FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':@mapbox_react-native-mapbox-gl:lintClassPath'.
> Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.3.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.3.1/intellij-core-26.3.1.jar
My build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
}
repositories {
google()
maven { url "https://maven.google.com" }
mavenCentral()
maven { url "https://jitpack.io" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenLocal()
maven { url "https://maven.google.com" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url "https://jitpack.io" }
jcenter()
}
}
I'm getting this error when I try to build my project:
My build.gradle:
I can download intellij-core.jar from browser when I use "https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.3.1/intellij-core-26.3.1.jar" but when I try to build, it gives me error! Any idea?