BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / mobile-internet / #820同步于 2010/9/29
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileInternet机器人发帖

【已解决】学习google那个android应用比赛教程产生问题

genius1wjc
2010/9/29镜像同步4 回复
我按照网页“http://androidappdocs.appspot.com/resources/tutorials/hello-world.html”上把那个hello, android的程序拷到eclipse里面,运行之后没有出现“hello, android”而仅仅是一个手机界面(见附件),这是怎么回事?
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
genius1wjc机器人#1 · 2010/9/29
控制台显示: [2010-09-29 21:10:16 - HelloAndroid] ------------------------------ [2010-09-29 21:10:16 - HelloAndroid] Android Launch! [2010-09-29 21:10:16 - HelloAndroid] adb is running normally. [2010-09-29 21:10:16 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 21:10:16 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 21:10:16 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 21:10:33 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 21:10:33 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 21:10:51 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'! [2010-09-29 21:16:04 - HelloAndroid] ------------------------------ [2010-09-29 21:16:04 - HelloAndroid] Android Launch! [2010-09-29 21:16:04 - HelloAndroid] adb is running normally. [2010-09-29 21:16:04 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 21:16:04 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 21:16:04 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 21:16:07 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 21:16:07 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 21:16:15 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'! [2010-09-29 21:16:17 - HelloAndroid] ------------------------------ [2010-09-29 21:16:17 - HelloAndroid] Android Launch! [2010-09-29 21:16:17 - HelloAndroid] adb is running normally. [2010-09-29 21:16:17 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 21:16:17 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 21:16:17 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 21:16:21 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 21:16:21 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 21:16:26 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'! [2010-09-29 21:16:49 - HelloAndroid] ------------------------------ [2010-09-29 21:16:49 - HelloAndroid] Android Launch! [2010-09-29 21:16:49 - HelloAndroid] adb is running normally. [2010-09-29 21:16:49 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 21:16:49 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 21:16:49 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 21:16:53 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 21:16:53 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 21:16:58 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'! [2010-09-29 21:23:38 - HelloAndroid] ------------------------------ [2010-09-29 21:23:38 - HelloAndroid] Android Launch! [2010-09-29 21:23:38 - HelloAndroid] adb is running normally. [2010-09-29 21:23:38 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 21:23:38 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 21:23:38 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 21:23:41 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 21:23:41 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 21:25:04 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'! [2010-09-29 21:25:05 - HelloAndroid] ------------------------------ [2010-09-29 21:25:05 - HelloAndroid] Android Launch! [2010-09-29 21:25:05 - HelloAndroid] adb is running normally. [2010-09-29 21:25:05 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 21:25:05 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 21:25:05 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 21:25:09 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 21:25:09 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 21:26:42 - HelloAndroid] WARNING: Application does not specify an API level requirement! [2010-09-29 21:26:42 - HelloAndroid] Device API version is 8 (Android 2.2) [2010-09-29 21:26:42 - HelloAndroid] HOME is up on device 'emulator-5554' [2010-09-29 21:26:42 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554' [2010-09-29 21:26:42 - HelloAndroid] Installing HelloAndroid.apk... [2010-09-29 21:26:43 - HelloAndroid] Success! [2010-09-29 21:26:43 - HelloAndroid] Failed to upload HelloAndroid.apk on device 'emulator-5554' [2010-09-29 21:26:43 - HelloAndroid] com.android.ddmlib.AdbCommandRejectedException: device not found [2010-09-29 21:26:43 - HelloAndroid] Launch canceled! [2010-09-29 22:02:51 - HelloAndroid] ------------------------------ [2010-09-29 22:02:51 - HelloAndroid] Android Launch! [2010-09-29 22:02:51 - HelloAndroid] adb is running normally. [2010-09-29 22:02:51 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 22:02:51 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 22:02:51 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 22:03:04 - HelloAndroid] ------------------------------ [2010-09-29 22:03:04 - HelloAndroid] Android Launch! [2010-09-29 22:03:04 - HelloAndroid] adb is running normally. [2010-09-29 22:03:04 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch [2010-09-29 22:03:04 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2010-09-29 22:03:04 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2010-09-29 22:03:04 - Emulator] emulator: ERROR: the user data image is used by another emulator. aborting [2010-09-29 22:03:08 - HelloAndroid] New emulator found: emulator-5554 [2010-09-29 22:03:08 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2010-09-29 22:03:18 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!
raintemple机器人#2 · 2010/9/30
android emulator启动比较慢的,你可以多等会儿…… 看控制台的信息似乎:前面几次启动没完成你就直接关了,如果问题存在的话,应该是这一句[2010-09-29 21:26:43 - HelloAndroid] com.android.ddmlib.AdbCommandRejectedException: device not found,ADB报告没有找到device,原因不清楚了。后面提示user data image正被使用,可以直接从任务管理器中关掉再重启adb试一试
genius1wjc机器人#3 · 2010/9/30
【 在 raintemple 的大作中提到: 】 : android emulator启动比较慢的,你可以多等会儿…… : 看控制台的信息似乎:前面几次启动没完成你就直接关了,如果问题存在的话,应该是这一句[2010-09-29 21:26:43 - HelloAndroid] com.android.ddmlib.AdbCommandRejectedException: device not found,ADB报告没有找到device,原因不清楚了。后面提示user data image正被使用,可以直接从任务管理器中关掉再重启adb试一试 : -- : ................... 汗~还真是我提前关了。。。谢谢啦!
jiuweiwuyou机器人#4 · 2010/10/18
第一次开的时候貌似我也提前关了……