Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task ':app:checkDevDebugAarMetadata' [closed]

Tags:

react-native

What went wrong:
Execution failed for task ':app:checkDevDebugAarMetadata'.

Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'. Could not resolve net.minidev:json-smart:[1.3.1,2.3]. Required by: project :app > 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)

i am getting above error while building project . unable to resolve it please help me out.

like image 686
MURARI Yadav Avatar asked Oct 24 '25 19:10

MURARI Yadav


1 Answers

Try to fix it by changing in react-native-code-push

node-module/react-native-code-push/android/app/build.gradle

edit line

implementation('com.nimbusds:nimbus-jose-jwt:5.1') 

to

implementation('com.nimbusds:nimbus-jose-jwt:5.1') 
 { exclude group: "net.minidev", module: "json-smart" }

Try another Solution if the above don't work

Complete Solution Stack

like image 109
Nooruddin Lakhani Avatar answered Oct 28 '25 05:10

Nooruddin Lakhani