Android 即使安装了目标,Cordova build也无法解析目标

Android 即使安装了目标,Cordova build也无法解析目标,android,cordova,Android,Cordova,我正在尝试设置一个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: U

我正在尝试设置一个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列表目标时,我得到:

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
此外,我已将项目目标明确设置为另一个android版本。像这样:
android更新项目-p-t android-17
我还尝试添加--subprojects参数。我仍然得到上面的构建失败错误


谢谢

好的,我自己发现了:我在Eclipse中打开了项目,右键单击项目名称并选择“属性”。在左侧的属性菜单中,我选择了“Android”。在图书馆面板中有一个图书馆,前面有一个红十字。我假设这个库被设置为target=android-L。我删除了它,并可以随后构建这个项目