简体   繁体   English

为什么App无法自动安装在Android模拟器中

[英]Why App won't install in Android emulator automatically

I followed the tutorial on http://developer.android.com/resources/tutorials/hello-world.html 我遵循了http://developer.android.com/resources/tutorials/hello-world.html上的教程

After I pressed run, the emulator show up and display the home menu for one to unlock. 在我按下运行后,模拟器将显示并显示主菜单以供解锁。 But the Hello Android app won't install. 但是Hello Android应用程序将无法安装。

I googled and tried many suggestion on the web and most of them failed. 我在Google上搜索并尝试了许多建议,但大多数建议都失败了。 I feel hopeless. 我感到绝望。 The only way to make it work is to launch the emulator and kill the adb.exe, after the adb.exe was revived, it will install the app. 使它工作的唯一方法是启动模拟器并杀死adb.exe,在adb.exe恢复后,它将安装该应用程序。 However, it doesn't work everytime. 但是,它并非每次都起作用。

Is this a bug? 这是错误吗? Does any know the cause? 有什么原因吗? If the eclipse is something optional such as Eclipse, I can just switch another one... 如果Eclipse是可选的东西(例如Eclipse),我可以切换另一个。

Here is some of my configuration: 这是我的一些配置:

- Windows Xp
- Android SDK r19 on D:\
- ADT v18
- Eclipse in C:\
- Workspace in D:\

I think you can try to download a fresh eclipse and install again the ADT-Plugin for eclipse. 我认为您可以尝试下载新的Eclipse,然后再次安装Eclipse的ADT-Plugin。 I guess there is a problem in your previous install. 我想您先前的安装有问题。

Try 尝试

  1. Restart Your Computer 重启你的电脑

  2. run

    adb uninstall your.package adb卸载your.package

  3. Start Eclipse and run the application 启动Eclipse并运行应用程序

  4. Unlock the emulator 解锁模拟器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM