Execution failed for task ':react-native-code-push:generateDebugRFile'.
Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
Steps to Reproduce
1. 2. 3.
Expected Behavior
react-native run-android
Actual Behavior
Execution failed for task ':react-native-code-push:generateDebugRFile'.
Could not resolve all files for configuration ':react-native-code-push:debugCompileClasspath'. Could not resolve net.minidev:json-smart:[1.3.1,2.3]. Required by: project :react-native-code-push > com.nimbusds:nimbus-jose-jwt:5.1 > Failed to list versions for net.minidev:json-smart. > Unable to load Maven meta-data from https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml. > Could not HEAD 'https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml'. > org.apache.http.client.ClientProtocolException (no error message)
Reproducible Demo
Environment
- react-native-code-push version:
- react-native version:
- iOS/Android/Windows version:
- Does this reproduce on a debug build or release build?
- Does this reproduce on a simulator, or only on a physical device?
(The more info the faster we will be able to address it!)
The same problem occurred to me. It worked well until last Wednesday It suddenly doesn't work from today. What should I do?
Same error. Any solution?
I have the same error. is there any solution for it?
temporary solution
in android/build.gradle

Could not find com.facebook.fresco:memory-type-java:2.2.0.
Could not find com.facebook.fresco:imagepipeline:2.2.0.
Could not find com.facebook.fresco:fbcore:2.2.0.
Changing jcenter() to mavenCentral() results in the following error: A temporary solution did not work for me.
Same error. @hoanglam10499 the temporary solution did not work for me :(
Same error for me today 2022 May 09

https://status.bintray.com/ Giving a 502 bad gateway 😅 . Think we might not have a quick fix for this unless you are able to swap to mavenCentral
seems like jcenter is deprecated. (see https://blog.gradle.org/jcenter-shutdown)
just migrate all your 3rd party libraries (by modifying build.gradle file inside each modules)
Add mavenCentral inside buildscript repositories and allprojects repositories is working for me.
android/build.gradle

Add mavenCentral inside buildscript repositories and allprojects repositories is working for me.
android/build.gradle
thanks
Add mavenCentral inside buildscript repositories and allprojects repositories is working for me.
android/build.gradle
@edohartono You made a very wise choice. Thank you very much. I had a headache at the thought of migrating, but I don't have to.
I have the same error. is there any solution for it?
@Fred0218 ./gradlew clean and cache clear and try again.
I have clean and tried again, still now work.
Could not determine the dependencies of task ':react-native-code-push:compileDebugAidl'.
Could not resolve all task dependencies for configuration ':react-native-code-push:debugCompileClasspath'. Could not resolve net.minidev:json-smart:[1.3.1,2.3]. Required by: project :react-native-code-push > com.nimbusds:nimbus-jose-jwt:5.1 > Failed to list versions for net.minidev:json-smart. > Unable to load Maven meta-data from https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml. > Could not HEAD 'https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml'. > org.apache.http.client.ClientProtocolException (no error message)
- 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.
@Fred0218 I'm sorry. I don't know any more.
@edohartono thanks +1
for me, I have to add mavenCentral to buildscript repositories and maven url "https://plugins.gradle.org/m2/" to allprojects repositories


We solved this by adding maven central to our project repository and for all the dependencies in our project
In the project's build.gradle
- Add maven to project repositories

- Add maven to
allprojectsrepositories and exclude react native as older versions can be present there.

Hope it helps someone, Thanks!
for me, I have to add mavenCentral to buildscript repositories and maven url "https://plugins.gradle.org/m2/" to allprojects repositories
thanks +1