当Jenkins尝试生成我的模拟器时,它出错了:
tools/android create avd -f -a -c 256M -s 1080x1920 -n hudson_de-DE_480_1080x1920_Google_Inc._Google_APIs_23_x86 -t "Google Inc.:Google APIs:23" --abi x86
Error: Invalid --tag default for the selected target.
但是tools/android list targets
输出
id: 6 or "Google Inc.:Google APIs:23"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based on Android 6.0 (API level 23)
Libraries:
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : google_apis/x86
我做错了什么?
答案 0 :(得分:2)
显然,--abi
参数需要修复,而不是--tag
参数。该错误具有误导性:
$ tools/android create avd -f -a -c 256M -s 1080x1920 \
-n hudson_de-DE_480_1080x1920_Google_Inc._Google_APIs_23_x86 \
-t "Google Inc.:Google APIs:23" --abi google_apis/x86