react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Execution failed for task ':react-native-code-push:generateDebugRFile'.

Open iqbalsafeip opened this issue 4 years ago • 24 comments

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!)

iqbalsafeip avatar May 09 '22 02:05 iqbalsafeip

The same problem occurred to me. It worked well until last Wednesday It suddenly doesn't work from today. What should I do?

LeeKyungJoon2 avatar May 09 '22 02:05 LeeKyungJoon2

Same error. Any solution?

daonham avatar May 09 '22 02:05 daonham

I have the same error. is there any solution for it?

huynv3 avatar May 09 '22 02:05 huynv3

temporary solution

in android/build.gradle image

hoanglam10499 avatar May 09 '22 03:05 hoanglam10499

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.

LeeKyungJoon2 avatar May 09 '22 04:05 LeeKyungJoon2

Same error. @hoanglam10499 the temporary solution did not work for me :(

thp96 avatar May 09 '22 04:05 thp96

Same error for me today 2022 May 09

Screenshot 2022-05-09 at 12 29 50 PM

0xzight avatar May 09 '22 04:05 0xzight

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

cam-shaw avatar May 09 '22 05:05 cam-shaw

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)

pjc0247 avatar May 09 '22 05:05 pjc0247

Add mavenCentral inside buildscript repositories and allprojects repositories is working for me.

android/build.gradle

Screen Shot 2022-05-09 at 13 08 15

edosetia avatar May 09 '22 06:05 edosetia

Add mavenCentral inside buildscript repositories and allprojects repositories is working for me.

android/build.gradle

Screen Shot 2022-05-09 at 13 08 15 thanks

cctipgit avatar May 09 '22 06:05 cctipgit

Add mavenCentral inside buildscript repositories and allprojects repositories is working for me.

android/build.gradle

Screen Shot 2022-05-09 at 13 08 15

@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.

LeeKyungJoon2 avatar May 09 '22 06:05 LeeKyungJoon2

I have the same error. is there any solution for it?

Fred0218 avatar May 09 '22 06:05 Fred0218

@Fred0218 ./gradlew clean and cache clear and try again.

LeeKyungJoon2 avatar May 09 '22 06:05 LeeKyungJoon2

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 avatar May 09 '22 07:05 Fred0218

@Fred0218 I'm sorry. I don't know any more.

LeeKyungJoon2 avatar May 09 '22 07:05 LeeKyungJoon2

@edohartono thanks +1

0xzight avatar May 09 '22 07:05 0xzight

for me, I have to add mavenCentral to buildscript repositories and maven url "https://plugins.gradle.org/m2/" to allprojects repositories image

image

nvtai123 avatar May 09 '22 07:05 nvtai123

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

Screenshot 2022-05-09 at 13 48 46

  • Add maven to allprojects repositories and exclude react native as older versions can be present there.

Screenshot 2022-05-09 at 13 49 31

Hope it helps someone, Thanks!

hrupesh avatar May 09 '22 08:05 hrupesh

for me, I have to add mavenCentral to buildscript repositories and maven url "https://plugins.gradle.org/m2/" to allprojects repositories image

image

thanks +1

LeonArantes avatar May 09 '22 12:05 LeonArantes