Android的工作室没有主要活动,在新的项目中没有布局 [英] Android studio no main activity, no layouts on a new project

查看:107
本文介绍了Android的工作室没有主要活动,在新的项目中没有布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了新的Andr​​oid工作室。我创造了新的项目,并要求向导创建的主要活动。但是,没有布局,没有主要的活动课,什么都没有。在努力使新的Java类文件时出错。新项目树是这个样子:
否(主/ JAVA)的文件夹。 否(RES /布局)文件夹。 换句话说项目是没有用的。

I installed new Android Studio. I created new Project and asked the wizard to create main activity. But there were no layouts, no main activity class, no nothing. Error on trying to make new Java class files. The new project tree looks like this:
No (main/java) folder.
No (res/layout) folder.
Other words project is useless.

推荐答案

@Pavel,你需要(创建项目之后),转到文件菜单,然后导入项目。然后浏览到你的项目的位置,并将其导入。然后你会看到所有这些文件和文件夹。我有这个问题太,似乎有什么东西,他们在较新的Andr​​oid版本工作室忽略的(如果你问我这是很可悲的)。

@Pavel, you need to (after creating the project), go to File menu and then Import Project. Then browse to the location of your project and import it. Then you will see all of these files and folders. I had this problem too, and it seems to be something that they overlooked in the newer versions of Android Studio (which is quite pathetic if you ask me).

这篇关于Android的工作室没有主要活动,在新的项目中没有布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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