简体   繁体   中英

Failed to create new project in android studio 0.2.3

After I updated form 0.2.2 to 0.2.3, I create new project failed. Error message is below: 下午 08:51:58 Gradle 'NotifyViaGoogleMapsProject' project refresh failed: The SDK directory 'C:\\Program Files (x86)\\Android\\android-studio\\bin\\Program Files (x86)Androidandroid-studiosdk' does not exist. Build file 'F:\\AndroidStudioDevelop\\NotifyViaGoogleMapsProject\\NotifyViaGoogleMaps\\build.gradle' line: 9

NotifyViaGoogleMapsProject is my project name,and my android studio is install in default path(C:\\Program Files (x86)\\Android\\android-studio), there has no same error in 0.2.2.

I've figured out the problem.

Open ' local.properties ' in your project using a text editor.

sdk.dir=..\\sdk

Save and Close

Now Import your project into Android Studio.

Make sure that the SDK folder you mention exists - I'm not sure if it is a typo or not but the path you specified is a bit weird - it should be

C:\\Program Files (x86)\\Android\\android-studio\\sdk

On the menu go to File -> Project Structure , then choose SDKs under Platform Settings . Check that the path for the Android Platform you use is correct, and if not, change it to the correct path. Also make sure that the Project is set to use the correct Android Platform.

I have the same problem.

http://i.stack.imgur.com/pPOOi.png

The SDK is correct in Platform Settings, I have no idea what's causing this problem.

http://puu.sh/3TAFi.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM