---
title: "Android开发-emulator-5554 disconnected错误解决办法"
author: "wanglihu"
date: "2012-01-10T14:26:46Z"
tags: []
categories: ["移动开发"]
slug: "android-emulator-5554-disconnected"
draft: false
lastmod: "2012-01-10T15:20:05Z"
id: 1340116
url: "https://wanglihu.iteye.com/blog/1340116"
---

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...
<span style="color:red"> emulator-5554 disconnected! Cancelling 'com.hitsoft.helloworld.HelloworldActivity activity launch'!</span>

解决办法：
新增一个环境变量为 "**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 }