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?
- 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?
- Solution 1: Replace this line
- Solution 2: Add this line in your android/app/build.gradle
- Conclusion
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?
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.
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
- Message: session not created: This version of ChromeDriver only supports Chrome version 102 Current browser version is 100
- Failed! Error: SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method used doesn’t store authentication data in the MySQL server
- autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated
- 1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)
- How To Count unique values in a column in pandas dataframe?