Define location with sdk.dir in the local.properties file or with an ANDROID_HOM

Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

 

This error is because the project is not imported from android studio, but the project structure of eclipse is used, so it will go wrong

Because there is no setting.gradle and the location of both build.gradle is wrong.

The best solution is to create a new project and copy the source code into it

Guess you like

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