创建 Android 虚拟设备时没有 ABI 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10019532/
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
no ABI error , when creating an Android virtual device
提问by user1207289
I am getting a No ABI error when creating a virtual device. My setup includes
创建虚拟设备时出现 No ABI 错误。我的设置包括
Android SDK
安卓SDK
ADT plugin
ADT插件
Eclipse
蚀
when I run
当我跑
android list targets
it gives me
它给了我
Name: Android 4.0.3
Type: Platform
API level: 15
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720,
WXGA800
ABIs : no ABIs.
and when I try to run
当我尝试跑步时
android create avd -n myandroid -t 1
it gives
它给
This platform has more than one ABI. Please specify one using --abi.
how do I specify ABI and hence create an AVD
我如何指定 ABI 从而创建一个 AVD
回答by Liko
Find the ABI relative to your android version:
查找与您的 android 版本相关的 ABI:
android list sdk --extended --no-ui --all
Install ABI:
安装 ABI:
echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-22,sys-img-x86_64-android-22
Create AVD:
创建 AVD:
echo "n" | android create avd --name myandroid22 -t "android-22"
If you have more than one, list and find valid ABI:
如果您有多个,请列出并找到有效的 ABI:
android list targets
Create AVD:
创建 AVD:
echo "n" | android create avd --name myandroid22 -t "android-22" --abi "default/armeabi-v7a"
回答by Lars Tackmann
Use the command tools/androidto fire up the Android SDK Managerand install the ABI's from there.
使用命令tools/android启动Android SDK Manager并从那里安装 ABI。
回答by Otpidus
Use "android list targets" to get a list of possible target configurations.
使用“android list targets”获取可能的目标配置列表。
When using the command to create a virtual device use -t to specify the id from the list and -b to specify the ABI. You can see that in the result for the "list target" command.
使用命令创建虚拟设备时,使用 -t 指定列表中的 id,使用 -b 指定 ABI。您可以在“list target”命令的结果中看到这一点。
$ android create avd -n my_android1.1 -t 1 -b default/x86
$ android list target
----------
id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 4
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a, default/x86
----------
id: 2 or "android-20"
Name: Android 4.4W.2
Type: Platform
API level: 20
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : no ABIs.
----------