-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build failed: 'Failed to list versions for com.facebook.react:react-native.' #35136
Comments
You're not alone, experiencing same error BUILD FAILED in 1m 47s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. FAILURE: Build failed with an exception.
Steps to reproduce are the same. |
I get a similar error with an expo managed rn app:
|
JCenter and Bintray shut down today. |
Do you have a resource that states this that you can share with us? |
I'm also getting the same error (version 0.66.4). anyone know what should we do? |
@olcaneristi Probably going to have to change where were fetching these deps from in the build process because JCenter and Bintray aren't working. @louniss I can't find any resources that state JCenter and Bintray being shutdown today? I found something that mentions being shutdown Feb 1st 2022, but were now way past that date |
I was able to fix my build. Apparently jcenter is down. It was already deprecated for some time now. I am not sure if it is finally down forever now or if this is temporary. I had to update all dependencies that still used jcenter to the newest version. Most of them replaced jcenter with maven already. One I had to manually patch with https://github.com/ds300/patch-package myself. After that my build worked again. |
@mauricedoepke hopefully this is just temp otherwise a fix is going to have to be made in all these RN pkgs |
https://bintray.com/ says 410 gone and https://jcenter.bintray.com/ says 403 forbidden edit: to those who are confused
|
Hey everyone, I tweaked a few things in my remove Hope this fixes everyone :) |
@stephanrotolante can you help me share your complete build.gradle ?. because i already remove jcenter but still got error. Thanks |
I had to comment out the Obviously, you will need to delete the following folders (if any of them exists) before trying to rebuild your app. |
It may be stupid but work for me it is replace all jcenter() in your project even node_module by mavenCentral() |
@nyomanyudis95 try running a gradle clean, then rebuild
} |
I'm having the same problem |
1 similar comment
I'm having the same problem |
jcenter has shutdown in the last 24 hours I think. You should I've just finished doing this and found many packages actually fixed this and just required an update to the version of those packages. GL ✌️ |
Hello, I am still facing the same issue when building new release app, works pretty well with debug app Thanks! |
Hello, Same problem, in my case I can't replace |
It worked using [proselin] solution.. Replace |
BTW its already work for me just delete jcenter in build.gradle. After that you need to look carefully about what package that make your app dont run . For example i have problem like this after delete jcenter.
My error said its error required by quickblox-react-native-sdk. So i need to check version of that package. If you upgrade package that cause trouble to latest version and still can't run. You need to think again about using that package because jcenter dont support anymore. Thanks |
replacing jcenter to mavenCentral causes another error `Could not determine the dependencies of task ':app:mergeDebugAssets'.
|
Could you guys try this and check if it works (in case you still using some library on jcenter)? So it seems not all jcenter repo down
|
@mowaisch Did you try "@react-native-community/blur": "^4.2.0" ? |
@doniwinata0309 `Could not determine the dependencies of task ':app:mergeDebugAssets'.
|
Now, It is woking |
I think best is to move out from JCenter, we never know it will be down again and may eventually be taken down. |
Agreed. After applying one of the quick fixes above we took the time to upgrade a few libraries that were holding us back and we were able to fully remove jcenter, and the bandaid. It was one of those make lemonade sort of moments. It's great to see how active folks have been on this issue. It's not quite the lpad issue of '16, but it's been an inconvenience. |
In my case, I reverted forked packages after applying
|
It work's now. Can be build normal 🚀. After restart JCenter. |
If any one replace JCenter. Please revert if change or with JCenter 😊. It's temporary solution. |
@shivamIqlance JCenter is deprecated https://developer.android.com/studio/build/jcenter-migration |
Now I revert my yesterday's temporary solutions and it works fine....... |
Still facing error.........
|
@vaish8529 bro I don't think so it's regarding Gradle, delete the node modules folder and install it, then go to android and clean gradlew and try to build App... |
Facing new error now.... Execution failed for task ':react-native-community_datetimepicker:compileDebugJavaWithJavac'.
Facing new error now.... D:\Projects\MobileApp\poimobileapp\node_modules@react-native-community\datetimepicker\android\src\main\java\com\reactcommunity\rndatetimepicker\Common.java:57: error: lambda expressions are not supported in -source 7 FAILURE: Build failed with an exception.
|
What is your react-native version? Try upgrade your react-native to 0.68 |
How I solved this error: In build.gradle
Changed to react-native version present in package.json
Same applies to other packages in build.gradle using Upgraded build gradle version and gradle plugin version |
is jcenter down again? |
Nope Check this issue #35210 |
i check the website is 403 bro
|
Still getting error of missing react-native version :/ Tried already everything :(
|
[AAPT: error: resource android:attr/lStar not found] |
I tried with the solution
and face this issue
How can I solve this ! |
Execution failed for task ':app:processDebugResources'.
|
this is fix my problem try it |
This is a duplicate of #35210 |
solution #35210 |
Description
Could not determine the dependencies of task ':app:compileDebugKotlin'.
Version
0.65.1
Output of
npx react-native info
System:
OS: macOS 13.0
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 55.72 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
Yarn: 3.1.1 - /usr/local/bin/yarn
npm: 8.16.0 - ~/WebstormProjects/mono-front/node_modules/.bin/npm
Watchman: 2022.08.15.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/magdaaa/.rvm/gems/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
start to build android app
Snack, code example, screenshot, or link to a repository
build.gradle
dependencies {
...
implementation "com.facebook.react:react-native:+"
...
}
The text was updated successfully, but these errors were encountered: