在 Eclipse 中启动 avd 时缺少特定于 arch 的模拟器程序错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6734504/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:38:05  来源:igfitidea点击:

Missing arch-specific emulator program error while launcing avd in eclipse

androideclipse

提问by Rob

I am using eclipse ide for android developement. I have run my application in avd of andriod 2.1. It was working fine. I worked the whole day and then i turnoff my system. The next day I launched my eclipse but when I tried launch the avd I got Missing arch-specific emulator program: E:\androidsdk\tools/emulator-arm.exeerror. How to overcome ths issue and start my AVD again.

我正在使用 eclipse ide 进行 android 开发。我已经在 andriod 2.1 的 avd 中运行了我的应用程序。它工作正常。我工作了一整天,然后我关闭了我的系统。第二天我启动了我的日食,但是当我尝试启动 avd 时出现Missing arch-specific emulator program: E:\androidsdk\tools/emulator-arm.exe错误。如何克服这个问题并再次启动我的 AVD。

回答by edhubbell

In my case, this was solved by doing the following:

就我而言,这是通过执行以下操作解决的:

- 启动 Android SDK 工具 > SDK 管理器

- 在 Tools 文件夹下,选择 Android SDK Tools

- 选择“Delete 1 Package”删除Android SDK Tools

- 喝咖啡。诅咒诸神。

- 选择“安装 1 包”以重新安装 Android SDK 工具

Android emulator is a deep, deep hell, unto which much time must be sacrificed. Hopefully this will add 10 minutes to someone's life.

Android 模拟器是一个很深很深的地狱,必须为此付出很多时间。希望这将为某人的生活增加 10 分钟。

~Ed

~埃德

回答by Rob

Run the SDK Manager and update everything. If that doesn't work, reinstall just the SDK manager, ADT plugin on eclipse should be fine.

运行 SDK Manager 并更新所有内容。如果这不起作用,只需重新安装 SDK 管理器,eclipse 上的 ADT 插件应该没问题。

回答by Nathan Perrier

I kept running into this on Mac OSX and it was driving me nuts.

我一直在 Mac OSX 上遇到这个问题,这让我发疯。

I finally found out the issue was with the way I added the android tools dir to my PATH in my .bashrc

我终于发现问题出在我将 android 工具目录添加到我的 .bashrc 中的路径的方式上

Broken:

破碎

export PATH="~/android-sdks/tools:$PATH"

export PATH="~/android-sdks/tools:$PATH"

Fixed:

固定

export PATH="$HOME/android-sdks/tools:$PATH"

export PATH="$HOME/android-sdks/tools:$PATH"

回答by Jerome

I had this problem when trying to run the emulator through a symlink on the path. The emulator executable located at /usr/bin/android-sdk/tools/emulatorcould not find the other tool (/usr/bin/android-sdk/tools/emulator-arm) since it was being run from my home folder instead of /usr/bin/android-sdk/tools.

我在尝试通过路径上的符号链接运行模拟器时遇到了这个问题。位于 的模拟器可执行文件/usr/bin/android-sdk/tools/emulator找不到其他工具 ( /usr/bin/android-sdk/tools/emulator-arm),因为它是从我的主文件夹而不是/usr/bin/android-sdk/tools.

I fixed it by putting the following script on my path where the symlink used to be:

我通过将以下脚本放在符号链接曾经所在的路径上来修复它:

#! /usr/bin/env sh

#Get the folder of the script, so we can find the path
#that is relative to it
directory="$(dirname ##代码##)"
$directory/android-sdk/tools/emulator "$@"