无法启动Android Studio中的项目-未指定活动类 [英] Project in Android Studio won't start - Activity Class Not Specified
问题描述
根据适用于Android的新IDE,我决定从旧的Eclipse中导入项目.不幸的是,由于信息错误:未指定活动类
,我无法运行它们.
According to new IDE for android I decided to import projects from my old eclipse.
Unfortunatelly I cannot run them because of information Error: Activity Class not specified
This error can be found I user reproduce steps:
- 从顶部栏菜单中选择运行(ALT + U)"
- 编辑配置...(ALT + R)
- 选择或添加Android应用程序
- 在常规"标签中,选择"
模块导航列表"中的项目
- 这里我不知道该选择什么
启动默认活动
或启动
无论我做什么,我仍然会遇到 Run/Debug Configurations
Windows错误的底部.我应该如何启动我的android项目?
No matter what I do, I still get at the bottom of Run/Debug Configurations
windows error.
How am I supposed start my android projects?
推荐答案
请检查您的src文件夹是否添加到构建路径中.我通过导出到Gradle从Eclipse导入了我的工作区,默认情况下,只有gen文件夹被标记为源文件.因此,IDE无法编译您的源文件,也无法启动任何活动.
Please check if your src folders are added into the build path. I imported my workspace from Eclipse by export to Gradle, and by default only gen folders were marked as source files. Because of that, IDE cannot compile your source files and cannot launch any activities.
- 打开导航器
- 打开模块设置
- 从项目设置"中选择模块"
- 选择src和gen文件夹,然后右键单击它们,将其标记为Source文件夹,然后选择Source
希望会有所帮助.
这篇关于无法启动Android Studio中的项目-未指定活动类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!