Overview of Android Studio Development Experience

1. In the development process of Android Studio, after importing a new project, the operation prompt: "Gradle's dependency cache may be corrupt"; after inquiring, I found that there are many solutions on the Internet; Such errors in some specific scenarios are effective; I have written several solutions here for everyone to try:

Solution 1: Delete the .android folder in the Mac user folder and the .gradle file in the project root directory folder; then try invalidate cache and restart in Android Studio to see if it can be solved;

Solution 2: Change the gradle-wrapper.properties file in the gradle folder of the project root directory
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
for
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

I have solved this problem here. Of course, you can assign values ​​according to the actual situation.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326360094&siteId=291194637