gpt4 book ai didi

android - Cordova 3.4.0安装错误-请安装Android Target 19

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:48:17 25 4
gpt4 key购买 nike

我正在尝试将 android 平台添加到我的 cordova 项目中使用

cordova platform add android

但是,我收到以下错误:

Error: Please install Android target 19 (the Android newest SDK). Make sure you have the
latest Android tools installed as well. Run "android" from your command-line to
install/update any missing SDKs or tools.

如消息所示,我已使用 android 命令安装所有更新。除此之外,我还在我的路径变量中添加了以下内容:

%ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%JAVA_HOME%\bin

我在网上找到的其他类似问题的回答建议将project.properties文件中的target变量设置为

target=android-19

过去几天我已经尝试了所有这些,但我无法克服这个错误。我还能尝试解决这个问题吗?顺便说一下,我正在运行 64 位 Windows 8.1。

编辑:

只是想在我运行时添加更多信息

android list target

我得到以下输出

Available Android targets

id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a, default/x86
id: 2 or "Google Inc.:Google APIs x86:19"
Name: Google APIs x86
Type: Add-On
Vendor: Google Inc.
Revision: 4
Description: Android + Google APIs x86
Based on Android 4.4.2 (API level 19)
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: WVGA800 (default), WVGA854, WSVGA, WXGA720, HVGA, WXGA800-7in, QVGA, WQVGA400, WQVGA432, WXGA800
Tag/ABIs : default/x86
id: 3 or "Google Inc.:Google APIs:19"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 4
Description: Android + Google APIs
Based on Android 4.4.2 (API level 19)
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: WVGA800 (default), WVGA854, WSVGA, WXGA720, HVGA, WXGA800-7in, QVGA, WQVGA400, WQVGA432, WXGA800
Tag/ABIs : default/armeabi-v7a

最佳答案

我遇到了同样的问题。我通过为目标 [Android L、Android 4.4W (API 20) 和 Android 4.4.2w (API 19)] 下载相应的源解决了这个问题

android list target

输出:

Available Android targets:
----------
id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 3
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
Type: Platform
API level: 20
Revision: 1
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearSquare, AndroidWearRound, AndroidWearSquare
Tag/ABIs : android-wear/armeabi-v7a, android-wear/x86
----------
id: 3 or "android-L"
Name: Android L (Preview)
Type: Platform
API level: L
Revision: 3
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
----------
id: 4 or "Google Inc.:Glass Development Kit Preview:19"
Name: Glass Development Kit Preview
Type: Add-On
Vendor: Google Inc.
Revision: 8
Description: Preview of the Glass Development Kit
Based on Android 4.4.2 (API level 19)
Libraries:
* com.google.android.glass (gdk.jar)
APIs for Glass Development Kit Preview
Skins: WXGA800, WXGA800-7in, HVGA, WVGA800 (default), WQVGA400, QVGA, WSVGA, WQVGA432, WXGA720, WVGA854
Tag/ABIs : no ABIs.
----------
id: 5 or "Google Inc.:Google APIs:19"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 6
Description: Android + Google APIs
Based on Android 4.4.2 (API level 19)
Libraries:
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WXGA800, WXGA800-7in, HVGA, WVGA800 (default), WQVGA400, QVGA, WSVGA, WQVGA432, WXGA720, WVGA854
Tag/ABIs : default/armeabi-v7a
----------
id: 6 or "Google Inc.:Google APIs (x86 System Image):19"
Name: Google APIs (x86 System Image)
Type: Add-On
Vendor: Google Inc.
Revision: 6
Description: Android x86 + Google APIs
Based on Android 4.4.2 (API level 19)
Libraries:
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WXGA800, WXGA800-7in, HVGA, WVGA800 (default), WQVGA400, QVGA, WSVGA, WQVGA432, WXGA720, WVGA854
Tag/ABIs : default/x86

关于android - Cordova 3.4.0安装错误-请安装Android Target 19,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23639308/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com