oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.44k stars 2.12k forks source link

Error: Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8 #1089

Open lb90 opened 5 years ago

lb90 commented 5 years ago

I am using react-native v60.1 on Arch Linux. For my project I have installed react-native-vector-icons with npm install --save react-native-vector-icons. Then I have edited android/app/build.gradle adding the line:

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

When I run react-native run-android I get this error:

$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1222 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-vector-icons'.
> Could not resolve all artifacts for configuration ':react-native-vector-icons:classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.20.
     Required by:
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.analytics-library:shared:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.lint:lint-gradle-api:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:gradle-api:3.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > androidx.databinding:databinding-compiler-common:3.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools:sdk-common:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools:common:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools.build:manifest-merger:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools.analytics-library:tracker:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools:sdklib:26.3.1 > com.android.tools:repository:26.3.1
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.20.
         > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.20/kotlin-stdlib-jdk8-1.3.20.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.20/kotlin-stdlib-jdk8-1.3.20.pom'.
               > jcenter.bintray.com
   > Could not resolve org.apache.httpcomponents:httpmime:4.5.2.
     Required by:
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.analytics-library:crash:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools:sdklib:26.3.1
      > Could not resolve org.apache.httpcomponents:httpmime:4.5.2.
         > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.pom'.
               > jcenter.bintray.com
   > Could not resolve org.apache.httpcomponents:httpcore:4.4.5.
     Required by:
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.analytics-library:crash:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools:sdklib:26.3.1
      > Could not resolve org.apache.httpcomponents:httpcore:4.4.5.
         > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.pom'.
               > jcenter.bintray.com
   > Could not resolve org.apache.httpcomponents:httpclient:4.5.2.
     Required by:
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.analytics-library:crash:26.3.1
      > Could not resolve org.apache.httpcomponents:httpclient:4.5.2.
         > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom'.
               > jcenter.bintray.com
   > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.3.20.
     Required by:
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.lint:lint-gradle-api:26.3.1
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build:builder:3.3.1 > com.android.tools:sdk-common:26.3.1
      > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.3.20.
         > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.20/kotlin-reflect-1.3.20.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.20/kotlin-reflect-1.3.20.pom'.
               > jcenter.bintray.com
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.20.
     Required by:
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02
         project :react-native-vector-icons > com.android.tools.build:gradle:3.3.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.20.
         > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.20/kotlin-stdlib-1.2.20.pom'.
               > jcenter.bintray.com

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 57s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
johnf commented 1 year ago

@lb90 Is this still an issue?