Android开发-emulator-5554 disconnected异常解决方法

因为公司开发需要,开始接触APP的开发,今天一直出现下面的情况

Android开发-emulator-5554 disconnected错误解决办法

Android第一步-helloworld开发实例错误:
[2012-01-10 14:59:20 - helloworld] emulator-5554 disconnected! Cancelling 'com.hitsoft.helloworld.HelloworldActivity activity launch'!
[2012-01-10 15:06:27 - helloworld] ------------------------------
[2012-01-10 15:06:27 - helloworld] Android Launch!
[2012-01-10 15:06:27 - helloworld] adb is running normally.
[2012-01-10 15:06:27 - helloworld] Performing com.hitsoft.helloworld.HelloworldActivity activity launch
[2012-01-10 15:06:27 - helloworld] Automatic Target Mode: launching new emulator with compatible AVD '1.6'
[2012-01-10 15:06:27 - helloworld] Launching a new emulator with Virtual Device '1.6'
[2012-01-10 15:06:40 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-01-10 15:06:40 - helloworld] New emulator found: emulator-5554
[2012-01-10 15:06:40 - helloworld] Waiting for HOME ('android.process.acore') to be launched...
[2012-01-10 15:08:01 - helloworld] emulator-5554 disconnected! Cancelling 'com.hitsoft.helloworld.HelloworldActivity activity launch'!

解决办法:
新增一个环境变量为 " ANDROID_SDK_HOME ”,然后把变量值改为你想将".android”文件夹(AVD信息)所放置的位置,在这里我把它设置为Android SDK包中,值为:"E:\android\android-sdk_r16-windows\android-sdk-windows",问题解决了。

正确日志:
[2012-01-10 15:14:37 - helloworld] Android Launch!
[2012-01-10 15:14:37 - helloworld] adb is running normally.
[2012-01-10 15:14:37 - helloworld] Performing com.hitsoft.helloworld.HelloworldActivity activity launch
[2012-01-10 15:14:37 - helloworld] Automatic Target Mode: launching new emulator with compatible AVD '1.6'
[2012-01-10 15:14:37 - helloworld] Launching a new emulator with Virtual Device '1.6'
[2012-01-10 15:14:43 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-01-10 15:14:43 - helloworld] New emulator found: emulator-5554
[2012-01-10 15:14:43 - helloworld] Waiting for HOME ('android.process.acore') to be launched...
[2012-01-10 15:15:04 - helloworld] HOME is up on device 'emulator-5554'
[2012-01-10 15:15:04 - helloworld] Uploading helloworld.apk onto device 'emulator-5554'
[2012-01-10 15:15:05 - helloworld] Installing helloworld.apk...
[2012-01-10 15:15:13 - helloworld] Success!
[2012-01-10 15:15:13 - helloworld] Starting activity com.hitsoft.helloworld.HelloworldActivity on device emulator-5554

[2012-01-10 15:15:18 - helloworld] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.hitsoft.helloworld/.HelloworldActivity }

上面的success要等比较久的时间,要有耐心。

刚开始修改了之后,一直以为没成功,原来是系统的反应慢而已,真心醉了~~~

下面是运行成功的截图


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值