react-native-custom-tabs icon indicating copy to clipboard operation
react-native-custom-tabs copied to clipboard

Could not find com.github.droibit.customtabslauncher:launcher:1.0.8

Open yogsagot opened this issue 7 years ago • 2 comments

After I install and setup react-native-custom-tabs as described, I cannot build project and receive this error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':react-native-custom-tabs:debugCompileClasspath'.
> Could not find com.github.droibit.customtabslauncher:launcher:1.0.8.
  Searched in the following locations:
      https://jcenter.bintray.com/com/github/droibit/customtabslauncher/launcher/1.0.8/launcher-1.0.8.pom
      https://jcenter.bintray.com/com/github/droibit/customtabslauncher/launcher/1.0.8/launcher-1.0.8.jar
  Required by:
      project :react-native-custom-tabs

To fix this issue I need to open ./node_modules/react-native-custom-tabs/android/build.gradle (which I obviously should not do) And add

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

This makes my project successfully compile and run.

yogsagot avatar Apr 25 '18 08:04 yogsagot

This fix didn't work for me with the latest react-native 0.55.0.

thinklinux avatar Jun 13 '18 11:06 thinklinux

@yogsagot Instead of adding the jitpack.io repo to this package's gradle, you can add it to your top level android/build.gradle:

allprojects {
    repositories {
        // a bunch of existing repos
        ... 
        maven {
            // Allows to install packages directly from Git
            url "https://jitpack.io"
        }
    }
}

agurtovoy avatar Aug 24 '18 22:08 agurtovoy