android studio new project不显示,android studio new project missing folders

可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):

问题:

I have created a new project using the latest version of Android Studio (0.2.2), this is a fresh install of studio. When I am in the project explorer view, it fails to show me any folders for my project. I should see a root project folder, and within it the .idea, gradle, and module folders, but they are not showing.

Here is what I expect to see (taken from the sample project created on first boot):

6c1555302777729326ca3efa0910d9ec.png

But here is what I see immediately after the project's creation:

6c1555302777729326ca3efa0910d9ec.png

I cannot figure out how to expose my project's folders! I do not want to develop without the project explorer, it's simply too much of a hassle. Did I create the project incorrectly, or am I missing some not-so-obvious setting somewhere?

Thanks.

回答1:

The problem here is that I assumed android studio would create a module for the application. I assumed this because it asked me at the beginning for app name, module name, package, sdk info etc.

This assumption turned out to be false. You must create your first module manually through File > Project Structure. After that is done, the project explorer shows the files.

回答2:

File -> Project Structure -> Modules

Add Button (Green plus button) click -> New Module Select

New Module window -> "Content root" change path button click to select "Project root file path"

Apply to change save and "OK" button exit.

6c1555302777729326ca3efa0910d9ec.png

回答3:

In the project Explorer there is a drop down menu where you have selected project, now change it to project files.

I hope this will solve your problem. reply if it didn't.

回答4:

You have created a new gradle project not a new android project.

Update your android studio tools to 0.2.3 - Go to Help menu - select check for update.

then Update your android sdk tools, android support repository, android support library and android build tools using android sdk manager.

6c1555302777729326ca3efa0910d9ec.png

And update some configuration in project structure. Go to File menu->project structure -> in projects tab select Android SDK as default sdk and in SDKs tab set correct path to updated android sdk.

Now restart android studio and try to create a new project and it should work fine.

回答5:

(Noted for posterity) I had a similar issue come up recently, when importing an Eclipse android project. The issue was that the source folder wasn't added as such. I had to manually go into Project Structure -> Modules -> Sources and make sure that the "src" folder wasn't excluded and was marked a source folder.

回答6:

I had this exact same issue, there are some problem if you upgrade from 0.1.9 version to 0.2.0 in Windows.

Android Studio 0.2.0 Release

The solution (which worked for me) was to completely uninstall Android Studio and reinstall the 0.2.0 version.

回答7:

I had the same problem today. Additionally, the IDE posted an "Assertion Error" into its event log.

Downloading and reinstalling the preview version, then applying the patch to 0.2.6 worked for me.

回答8:

Change the SDK to a level that you have installed in the SDK manager. The SDK manager can be accessed from Tools -> Android -> SDK Manager. For me, Android Studio was packaged with API Level 17 but the new project wizard tried to target API Level 18.

回答9:

Although this question is asked years ago. But now following simple solution worked for me.

Clicking 'Sync Project With Gradle files' makes all directories visible.

6c1555302777729326ca3efa0910d9ec.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值