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

I followed some of the suggestions here and while they helped to get the build to complete I eventually ran into app crashes when the app attempted to apply updates published through CodePush. After some additional search I stumbled upon a suggestion to downgrade com.google.gms:google-services from 4.2.0 to 4.1.0. That created a different problem and eventually I decided to upgrade it to 4.3.10 since I saw that version in other documentation and now everything works 👍🏻 I hope this helps someone.

CleanShot 2022-05-11 at 21 28 44@2x

angel-urena avatar May 12 '22 01:05 angel-urena

<img width="480" alt="Screenshot 2022-05-15 at 6 18 02 PM" src="https://user-images.githubusercontent.com/47115026/168473685-cf649a4d-9e9f-427 Screenshot 2022-05-15 at 6 18 15 PM 3-84ea-6086baa8ba99.png"> Screenshot 2022-05-15 at 6 19 52 PM

Screenshot 2022-05-15 at 6 20 05 PM

I tried with multiple solution mentioned above but . getting error 👎 startup failed: General error during semantic analysis: Unsupported class file major version 62

java.lang.IllegalArgumentException: Unsupported class file major version 62 at groovyjarjarasm.asm.ClassReader.(ClassReader.java:196) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:177) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:163) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:284) at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:8

MrGautamojha avatar May 15 '22 12:05 MrGautamojha

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Jul 14 '22 13:07 ghost

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

ghost avatar Jul 29 '22 18:07 ghost