lichking911 2014-02-21 06:34 采纳率: 0%
浏览 3402

android SDK运行程序问题

我是新手求教个问题。
很简单的helloworld程序,而且曾经运行成功过,可是某次emulator不大正常后。我全删了,然后重新搭建了android开发平台。代码和虚拟机都重新做的,结果就run as 没反应了。我到虚拟机里去看试验程序其实已经装好了,可以卸载,但是找不到在哪运行,而且本来不是应该自动运行的么?

这是Console反馈信息
[2014-02-21 14:19:31 - AndroidHelloWorld] ------------------------------
[2014-02-21 14:19:31 - AndroidHelloWorld] Android Launch!
[2014-02-21 14:19:31 - AndroidHelloWorld] adb is running normally.
[2014-02-21 14:19:31 - AndroidHelloWorld] No Launcher activity found!
[2014-02-21 14:19:31 - AndroidHelloWorld] The launch will only sync the application package on the device!
[2014-02-21 14:19:31 - AndroidHelloWorld] Performing sync
[2014-02-21 14:19:31 - AndroidHelloWorld] Automatic Target Mode: Preferred AVD 'A2.2' is not available. Launching new emulator.
[2014-02-21 14:19:31 - AndroidHelloWorld] Launching a new emulator with Virtual Device 'A2.2'
[2014-02-21 14:19:35 - Emulator] emulator: warning: opening audio input failed
[2014-02-21 14:19:35 - Emulator]
[2014-02-21 14:19:35 - AndroidHelloWorld] New emulator found: emulator-5554
[2014-02-21 14:19:35 - AndroidHelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2014-02-21 14:20:07 - AndroidHelloWorld] HOME is up on device 'emulator-5554'
[2014-02-21 14:20:07 - AndroidHelloWorld] Uploading AndroidHelloWorld.apk onto device 'emulator-5554'
[2014-02-21 14:20:07 - AndroidHelloWorld] Installing AndroidHelloWorld.apk...
[2014-02-21 14:20:19 - AndroidHelloWorld] Success!
[2014-02-21 14:20:19 - AndroidHelloWorld] \AndroidHelloWorld\bin\AndroidHelloWorld.apk installed on device
[2014-02-21 14:20:19 - AndroidHelloWorld] Done!

额,刚才找到原因了,当初建项目时没有建activity,后来自己补了一个,就出现这个问题了。为啥自己添加的不行?是需要还设置哪个地方吗?

  • 写回答

1条回答

  • wantnowhy 2014-02-23 10:14
    关注

    太简单了 兄弟,你配置文件里,不存在启动Activity,建议先去学习基本Android知识。

    评论

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容