项目的Andr​​oid Studio将无法启动 - 活动课未指定 [英] Project in Android Studio won't start - Activity Class Not Specified

查看:103
本文介绍了项目的Andr​​oid Studio将无法启动 - 活动课未指定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据新的IDE为Android,我决定从我的旧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:

  1. 从顶栏菜单中选择运行(ALT + U)
  2. 编辑配置...(ALT + R)
  3. 选择或增加Android应用程序
  4. 在常规选项卡中选择在模块导航列表项目
  5. 在这里,我不知道该怎么选择启动默认的活动启动
  1. From top bar menu choose Run (ALT+U)
  2. Edit configuration... (ALT+R)
  3. Choose or add Android application
  4. In General tab choose project in Module navigation list
  5. Here I do not know what to choose Launch default activity or Launch

无论我做什么,我仍然可以在的底部运行/调试配置 Windows错误。 我应该如何开始我的Andr​​oid项目?

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文件夹添加到构建路径。我从进口的Eclipse我的工作空间导出到摇篮,并且默认情况下只有根文件夹标记为源文件。正因为如此,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.

  1. 开启导航
  2. 开启模块设置
  3. 从项目设置中选择模块
  4. 它们
  5. 选择src和根文件夹,并标明它们作为源文件夹,右键单击并选择源

希望这将有助于。

这篇关于项目的Andr​​oid Studio将无法启动 - 活动课未指定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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