close

[Solved] 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

I am trying to run my react-native app but I am facing the following error: 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. We will learn about All Possible Solutions So Lets Get Start with This Article.

How 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 Error Occurs?

I am trying to run my react-native app but I am facing the following error:

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)

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve 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 Error?

  1. How To Solve Could not reso lve all files for configuration ‘:app:devDebugRuntimeClasspath’. Could not resolve net.minidev:json-smart:[1.3.1,2.3]. Required by: project :app Error?

    To Solve 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 Error Just Open your android/app/build.gradle file and add this line at the bottom of your build.gradle: com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true and now, re-run your project.

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

    To Solve 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 Error First of all open your your_project/node-module/react-native-code-push/android/app/build.gradle and then just find implementation(‘com.nimbusds:nimbus-jose-jwt:5.1’) this line and replace it with implementation(‘com.nimbusds:nimbus-jose-jwt:5.1’) { exclude group: “net.minidev”, module: “json-smart” } and now try to re-run your project and now, your error must be solved. thanks.

Solution 1: Replace this line

First of all open your your_project/node-module/react-native-code-push/android/app/build.gradle and then just find implementation(‘com.nimbusds:nimbus-jose-jwt:5.1’) this line and replace it with implementation(‘com.nimbusds:nimbus-jose-jwt:5.1’) { exclude group: “net.minidev”, module: “json-smart” } and now try to re-run your project and now, your error must be solved. thanks.

Solution 2: Add this line in your android/app/build.gradle

If Solution did not work then Just Open your android/app/build.gradle file and add this line at the bottom of your build.gradle.

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

and now, re-run your project.

Conclusion

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment