Android的工作室无法创建新的Andr​​oid项目 [英] Android Studio Can't Create new Android Project

查看:91
本文介绍了Android的工作室无法创建新的Andr​​oid项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是最新的Andr​​oid Studio和今天我的Mac崩溃。重启后,我打开Android的工作室,现在我所有的项目都示数出了Android URI没有被发现。他们不会建造,不会使,什么都没有。如果我创建一个新的项目,Android项目是不是我的一个选项,这些选项只是所有的休息。 有什么我能做的,除了删除并重新安装?

I'm using the most recent Android Studio and today my Mac crashed. After rebooting, I opened Android Studio and now all of my projects are erroring out with the Android URI not being found. They won't build, won't make, nothing. If I create a new Project, Android project is not one of my options, just all the rest of the options. Is there anything I can do besides remove and reinstall?

推荐答案

我建议你重置,而不是全新安装的Andr​​oid工作室(至少给一试)。

I recommend you to Reset your Android Studio instead of fresh installation(At least give a try).

我只知道如何做到这一点在Windows上(应该是在任何操作系统类似的,你只需要找到正确的位置,你自己)。

I only know how to do this on Windows (it should be similar on any OS, you will just need to find the correct location yourself ).

在Windows上:

转到您的用户配置文件夹 - 在Windows 7/8,这将是:

Go to your User Profile Folder - on Windows 7/8 this would be:

 [SYSDRIVE]:\Users\[your username] (ex. C:\Users\pyus13)

这里面会有一个文件夹名为.AndroidStudio preVIEW(它可以被隐藏,所以请检查)。

Inside this there will be a folder named .AndroidStudioPreview (It can be hidden so please check ).

删除此文件夹(最好采取删除之前的备份)。

Delete this folder (Better to take a backup before deletion).

这将重置您的AS为默认值。

This will reset your AS to defaults.

现在开始你的Andr​​oid工作室,你会看到设置开始对话。

Now Start your Android Studio you will see the start dialog with settings.

执行以下步骤设置你的Andr​​oid SDK路径:

Do the following to set your Android sdk path :

 Go into Configure → Project Defaults → Project Structure → Project

添加新的SDK,并引用到SDK文件夹,你有,然后单击应用和确定。

Add new SDK and referencing to the SDK Folder that you have and then click apply and ok.

尝试打开你的任何早期的项目,或创建新的检查。尝试打开项目后,与摇篮同步。

Try to open any of your earlier project or create new one and check. try syncing with Gradle after opening project.

这篇关于Android的工作室无法创建新的Andr​​oid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆