react-native-custom-tabs
react-native-custom-tabs copied to clipboard
Could not find com.github.droibit.customtabslauncher:launcher:1.0.8
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.
This fix didn't work for me with the latest react-native 0.55.0.
@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"
}
}
}