Android Studio《项目结构》来不及 [英] Android Studio "Project Structure" not coming properly

查看:29
本文介绍了Android Studio《项目结构》来不及的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了 Android Studio 安装的所有必要步骤.我还检查了这个问题,但仍然面临同样的问题.

I follow all the necessary steps for Android Studio installation. I also checked this question, but still facing the same issue.

但是每当我创建任何新项目时,都会出现以下屏幕.我在 Eclipse 中找不到任何项目结构.

But whenever I create any new project, following screen come. I couldn't found any project structure as I can see in Eclipse.

在这里,我找不到任何src"、res"或任何文件结构.任何想法,如何获得正确的项目结构?

Here, I can't find any "src","res" or any file structure. Any idea, how to get proper Project Structure?

当我尝试添加新模块"时出现以下错误.

when I tried to add "New Module" following error comes to submit.

No message
java.lang.IllegalStateException: 
at com.android.tools.idea.wizard.NewModuleWizard.onFailure(NewModuleWizard.java:159)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:340)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$1.run(ExternalSystemUtil.java:364)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:304)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:185)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:175)
at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:695)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:458)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:154)

当我转到编辑配置时,由于上述错误而无法创建任何模块.

When I go to Edit Configuration, can't create any module due to above error.

推荐答案

转到文件 > 项目结构 > 项目设置 > 模块.

Go to File > Project Structure > Project Settings > Modules.

单击绿色 + 并添加新模块.选择应用程序模块并将内容根设置为您的项目模块.

Click on the green colored + and add new module. select Application module and set the content root to your project module.

点击下一步然后完成.

这应该可以解决问题,完整的项目结构就会出现.它对我有用.

This should do the trick and the complete project structure will appear. It worked for me.

这篇关于Android Studio《项目结构》来不及的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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