ITeye博客

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

wanglihu · 2012-01-10 14:26 · Android · 移动开发 · Markdown

Android第一步-helloworld开发实例错误: emulator-5554 disconnected! Cancelling 'com.hitsoft.helloworld.HelloworldActivity activity launch'!

Android Launch! adb is running normally. Performing com.hitsoft.helloworld.HelloworldActivity activity launch Automatic Target Mode: launching new emulator with compatible AVD '1.6' Launching a new emulator with Virtual Device '1.6' emulator: WARNING: Unable to create sensors port: Unknown error New emulator found: emulator-5554 Waiting for HOME ('android.process.acore') to be launched... 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",问题解决了。

正确日志: Android Launch! adb is running normally. Performing com.hitsoft.helloworld.HelloworldActivity activity launch Automatic Target Mode: launching new emulator with compatible AVD '1.6' Launching a new emulator with Virtual Device '1.6' emulator: WARNING: Unable to create sensors port: Unknown error New emulator found: emulator-5554 Waiting for HOME ('android.process.acore') to be launched... HOME is up on device 'emulator-5554' Uploading helloworld.apk onto device 'emulator-5554' Installing helloworld.apk... Success! Starting activity com.hitsoft.helloworld.HelloworldActivity on device emulator-5554 ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat= cmp=com.hitsoft.helloworld/.HelloworldActivity }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。