android studio 新项目缺少文件夹 [英] android studio new project missing folders

查看:97
本文介绍了android studio 新项目缺少文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用最新版本的 Android Studio (0.2.2) 创建了一个新项目,这是全新安装的 Studio.当我在项目资源管理器视图中时,它无法显示我的项目的任何文件夹.我应该会看到一个根项目文件夹,其中包含 .idea、gradle 和 module 文件夹,但它们没有显示.

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):

但这是我在项目创建后立即看到的:

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

我不知道如何公开我的项目文件夹!我不想在没有项目浏览器的情况下进行开发,这太麻烦了.我是否错误地创建了项目,或者我是否在某处遗漏了一些不那么明显的设置?

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?

谢谢.

推荐答案

这里的问题是我假设 android studio 会为应用程序创建一个模块.我之所以这么认为是因为它一开始问我应用名称、模块名称、包、sdk 信息等.

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.

这篇关于android studio 新项目缺少文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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