Android--The pit encountered by the clone project on Git

 

Directly above, first you have to have your GitHub project address, as follows:

Then open android studio and clone from Git when selecting a new project:

Click clone and wait for it to finish, a new window will open.

After opening, maybe, probably, maybe, the following reminder will appear, and the project run button is gray, and the open code is full of red eyes, is it going to crash:

 1 Migrate Project to Gradle? This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system 

 

Solution:

 1. Find a runnable as project, copy the settings.gradle file inside to the project, settings.gradle declares the Module referenced by the entire project.

 2. Close the project, go to the workspace to find the project's .idea folder and all the .iml files, delete it, don't hesitate.

 3. Then re-import the project and let as build gradle automatically.

 

Everything is caused by gradle, I want to know more ↓↓

https://blog.csdn.net/u011240877/article/details/53572264

Guess you like

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