Home > Mobile >  Problem solving: No cached version of the android. View the build: gradle: 3.6.1 available for of
Problem solving: No cached version of the android. View the build: gradle: 3.6.1 available for of

Time:09-21

Hello, everyone, I just started learning Android development, yesterday installed Android Studio, create a new project, but always receive an error
Information below
A problem occurred you root project 'My First Application.
Could not resolve all artifacts for the configuration ': the classpath'.
Could not resolve com. Android. View the build: gradle: 3.6.1.
Required by:
Project:
No cached version of the android. Tools. Build: gradle: 3.6.1 available for offline mode.
No cached version of the android. Tools. Build: gradle: 3.6.1 available for offline mode.

My current Android version Studio 3.6.1
Online search related information, provide solutions to basic as follows
1. Setup - & gt; Build, Execution, Deployment - & gt; Gradle set Offline Work, uncheck the Offine Work, back to the default of Gradle wrapper
But I do not have this option in the system,
In addition, see anyone else in the setup screen setup - & gt; Build, Execution, Deployment - & gt; Gradle there are Android Studio or Experimental items, my system all have no,
Attached to the system interface screenshots picture

Also look at elder advice, this is what reason,
How to solve,

Thanks to

CodePudding user response:

Should be gradle is not installed, you try to change the url
 
Maven {
The url "http://nexus.jrj.com.cn/nexus/content/groups/public/"
}

CodePudding user response:

reference 1st floor BDMH response:
should be gradle is not installed, you try to change the url
 
Maven {
The url "http://nexus.jrj.com.cn/nexus/content/groups/public/"
}

I'm trying to Build. Gradle () to add the following code, the problem was the same,
Maven {
The url "http://nexus.jrj.com.cn/nexus/content/groups/public/"
}

Good Gradle is not installed, how to reinstall? Also please moderator advice thank you very much

CodePudding user response:

The Internet to find some related operation method
Reference for partners and I met the same problem (hopefully help) :

Step 1: Go to the download site from Gradle: https://gradle.org/releases/

Step 2: Extract the downloaded zip file into a directory.

Step 2: Hit Ctrl + Alt + S (MAC:? +,) in Android studio/Intellij IDEA

Step 3: Goto: Build, Execution, Deployment & gt;> Build Tools & gt;> Gradle (Or just type in the searchbar Gradle)

Step 4: Select: (X) Use local gradle distribution and set gradle home to extracted gradle directory. Click on the apply.

Step 5: Get rid of your unnecessary gradle files delete:
- MyApp/gradle/
- gradlew
- gradlew. Bat
  • Related