科尔多瓦4.3.0错误:请安装Android的目标:" Android的21 QUOT; [英] Cordova 4.3.0 Error: Please install Android target: "android-21"
问题描述
我有一个与波纹模拟器运行良好的一个项目,但是当我尝试启动它的物理Android设备上,我得到以下错误:
I have a project that is running well with ripple emulator, but when i try to launch it on a physical Android device, I get the following error :
错误:请安装Android的目标:机器人-21。
Error: Please install Android target: "android-21".
提示:C:\程序\文件\(86)\机器人\ android-运行,打开SDK管理器 SDK \工具\ android.BAT
Hint: Open the SDK manager by running: C:\Program\ Files\ (x86)\Android\android- sdk\tools\android.BAT
您需要:
- 在SDK平台Android为21
- 在Android的SDK平台工具(最新)
- 在Android SDK中内建的工具(最新)
- "SDK Platform" for android-21
- "Android SDK Platform-tools (latest)
- "Android SDK Build-tools" (latest)
ERROR运行的一个平台或多个:错误:CMD:命令失败,退出code 2 您可能没有必要的环境或操作系统来运行这个项目
ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 2 You may not have the required environment or OS to run this project
我使用该设备在Android 4.2.2。安装在我的计算机上的SDK是4.4.2(API 19):
The device I'm using is on Android 4.2.2. The sdk installed on my computer is the 4.4.2 (API 19) :
我不明白为什么我的应用程序并没有我的设备上劳克。
I don't understand why my app doesn't lauch on my device.
推荐答案
我只是编纂现有的两个答案,这都是需要解决的问题。
I'm simply compiling two existing answers, which are both required to solve the problem.
到
project folder -> platforms -> android -> AndroidManifest.xml
找到类似
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="21" />
和修改 21
到 19
。
然后到
project folder -> platforms -> android -> project.properties
和变化
target=android-21
到
target=android-19
这篇关于科尔多瓦4.3.0错误:请安装Android的目标:&QUOT; Android的21 QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!