我正在尝试设置一个phonegap项目,并在运行cordova build android
时不断收到以下错误:
BUILD FAILED
/Applications/android-sdk-mac_x86/tools/ant/build.xml:601: The following error occurred while executing this line:
/Users/david/Projects/android-sdk-macosx/tools/ant/build.xml:542: Unable to resolve project target 'android-L'
关于它的奇怪之处在于我安装了android-L-Target。当我运行android list targets
时,我得到:
Available Android targets:
----------
id: 1 or "android-3"
...
id: 11 or "android-L"
Name: Android L (Preview)
Type: Platform
API level: L
Revision: 4
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, default/armeabi-v7a, default/x86, default/x86_64
此外,我已将project-target明确设置为另一个android-version。像这样:android update project -p . -t android-17
我也尝试过添加--subprojects参数。我仍然遇到上面的BUILD FAILED错误。
谢谢!
答案 0 :(得分:0)