You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* What went wrong:
Could not determine the dependencies of task ':shopify_react-native-skia:externalNativeBuildDebug'.
> Could not resolve all task dependencies for configuration ':shopify_react-native-skia:debugRuntimeClasspath'.
> Could not resolve com.facebook.react:react-native:+.
Required by:
project :shopify_react-native-skia
> Failed to list versions for com.facebook.react:react-native.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
> Read timed out
In case anyone will need hotfix as we do you can place this to your android/build.gradle:
allprojects {
repositories {
// This fix should be removed once https://github.com/Shopify/react-native-skia/pull/1040 is merged
all { ArtifactRepositoryrepo->if(repo instanceofMavenArtifactRepository){
def url = repo.url.toString()
if (url.startsWith('https://jcenter.bintray.com/')) {
remove repo
}
}
}
// end of temp fix............
But in some cases like mine, I'm using ReactNativeSkia version 0.1.103-alpha, it could be a permanent solution but alongside the solution, we should use a library or trick to keep the changes of node_modules in production.
For more information I left an answer on StackOverflow.
Description
Android build fails with this exception:
It seems that is because in
android/build.gradle
there is stilljcenter()
in repositories section, but it was shut down. RN already migrated react-native-community/discussions-and-proposals#331Version
all of them
Steps to reproduce
Run android build.
Snack, code example, screenshot, or link to a repository
Not needed.
The text was updated successfully, but these errors were encountered: