简体   繁体   English

无法在android studio 0.2.3中创建新项目

[英]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. 将表格0.2.2更新为0.2.3后,创建新项目失败。 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. 错误消息如下:下午08:51:58 Gradle'NotifyViaGoogleMapsProject'项目刷新失败:SDK目录'C:\\ Program Files(x86)\\ Android \\ android-studio \\ bin \\ Program Files(x86)Androidandroid-studiosdk'执行不存在。 Build file 'F:\\AndroidStudioDevelop\\NotifyViaGoogleMapsProject\\NotifyViaGoogleMaps\\build.gradle' line: 9 构建文件'F:\\ AndroidStudioDevelop \\ NotifyViaGoogleMapsProject \\ NotifyViaGoogleMaps \\ build.gradle'行: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. NotifyViaGoogleMapsProject是我的项目名称,我的Android Studio安装在默认路径(C:\\ Program Files(x86)\\ Android \\ android-studio)中,在0.2.2中没有相同的错误。

I've figured out the problem. 我已经解决了问题。

Open ' local.properties ' in your project using a text editor. 使用文本编辑器在项目中打开“ local.properties ”。

sdk.dir=..\\sdk

Save and Close 保存并关闭

Now Import your project into Android Studio. 现在,将您的项目导入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 确保您提到的SDK文件夹存在-我不确定它是否是错字,但您指定的路径有点奇怪-应该是

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

On the menu go to File -> Project Structure , then choose SDKs under Platform Settings . 在菜单上,转到File -> Project Structure ,然后在Platform Settings下选择SDKs Check that the path for the Android Platform you use is correct, and if not, change it to the correct path. 检查您使用的Android平台的路径是否正确,如果不正确,请将其更改为正确的路径。 Also make sure that the Project is set to use the correct Android Platform. 还要确保将Project设置为使用正确的Android平台。

I have the same problem. 我也有同样的问题。

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

The SDK is correct in Platform Settings, I have no idea what's causing this problem. SDK在“平台设置”中是正确的,我不知道是什么导致了此问题。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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