React-native-navigation: Could not find com.github.wix-playground:ahbottomnavigation:2.4.3.

Created on 2 Jul 2018  路  2Comments  路  Source: wix/react-native-navigation

Issue Description

updated to RNN v2.0.2384 and getting this error when running android

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.github.wix-playground:ahbottomnavigation:2.4.3.
  Searched in the following locations:
      file:/Users/hiso3d/Library/Android/sdk/extras/m2repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      file:/Users/hiso3d/Library/Android/sdk/extras/m2repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      file:/Users/hiso3d/Library/Android/sdk/extras/google/m2repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      file:/Users/hiso3d/Library/Android/sdk/extras/google/m2repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      file:/Users/hiso3d/Library/Android/sdk/extras/android/m2repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      file:/Users/hiso3d/Library/Android/sdk/extras/android/m2repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      file:/Users/hiso3d/.m2/repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      file:/Users/hiso3d/.m2/repository/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      https://jcenter.bintray.com/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      https://jcenter.bintray.com/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      https://dl.google.com/dl/android/maven2/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      https://dl.google.com/dl/android/maven2/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      https://repo.maven.apache.org/maven2/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      https://repo.maven.apache.org/maven2/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
      file:/Users/hiso3d/Desktop/ibt/seated/node_modules/react-native/android/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.pom
      file:/Users/hiso3d/Desktop/ibt/seated/node_modules/react-native/android/com/github/wix-playground/ahbottomnavigation/2.4.3/ahbottomnavigation-2.4.3.jar
  Required by:
      project :app

* 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

Environment

  • React Native Navigation version: 2.0.2384
  • React Native version: 0.54.4
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): android Nexus 5x api 28

Most helpful comment

You need to add JitPack repository in build.gradle

allprojects {
    repositories {
       google()
       mavenCentral()
       mavenLocal()
       jcenter()
       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' } } }

All 2 comments

You need to add JitPack repository in build.gradle

allprojects {
    repositories {
       google()
       mavenCentral()
       mavenLocal()
       jcenter()
       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' } } }

I know this is old, but if anyone else stumples upon this thread:

Make sure to use 'https://jitpack.io' and not 'https://www.jitpack.io'.

Was this page helpful?
0 / 5 - 0 ratings