错误:请安装Android的目标:" Android的22 QUOT;当SDK管理器显示它被安装 [英] Error: Please install Android target: "android-22" when SDK manager shows it is installed
问题描述
我已经安装在我的environmet了android-22。但在运行科尔多瓦构建Android得到以下错误时仍然
I have the android-22 installed on my environmet. But still when running the cordova build android getting the following error:
C:\\工作\\ WebRTC技术\\ FirstResponder \\ rtcommmobile>科尔多瓦构建Android
运行命令:C:\\工作\\ WebRTC技术\\的NodeJS \\ node.exe C:\\工作\\ WebRTC技术\\ FirstResponder \\ rtcommmobile \\钩\\ after_ prepare \\
增加体内类:平台的android
运行命令:C:\\工作\\ WebRTC技术\\的NodeJS \\ node.exe C:\\工作\\ WebRTC技术\\ FirstResponder \\ rtcommmobile \\钩\\ after_ prepare \\
运行命令:CMD/ S / CC:\\工作\\ WebRTC技术\\ FirstResponder \\ rtcommmobile \\ \\平台的Android \\科尔多瓦\\运行build.bat
[错误:请安装Android的目标:机器人-22
C:\Work\WebRTC\FirstResponder\rtcommmobile>cordova build android Running command: C:\Work\WebRTC\nodejs\node.exe C:\Work\WebRTC\FirstResponder\rtcommmobile\hooks\after_prepare\ add to body class: platform-android Running command: C:\Work\WebRTC\nodejs\node.exe C:\Work\WebRTC\FirstResponder\rtcommmobile\hooks\after_prepare\ Running command: cmd "/s /c "C:\Work\WebRTC\FirstResponder\rtcommmobile\platforms\android\cordova\build.bat"" [Error: Please install Android target: "android-22".
提示:C:通过运行打开SDK管理器\\工作\\ WebRTC技术\\机器人\\ Android的SDK \\工具\\ android.BAT
您需要:
1.SDK平台Android的22
2.Android的SDK平台工具(最新)
3.Android SDK中构建工具(最新)
ERROR建设的平台之一:错误:CMD:命令失败,退出code 2
您可能没有所需的环境或操作系统来构建这个项目
错误:CMD:命令失败,退出code 2
在ChildProcess.whenDone(C:\\用户\\ anatf \\应用程序数据\\漫游\\故宫\\ node_modules \\科尔多瓦\\ node_modules \\科尔多瓦,LIB \\
在ChildProcess.emit(events.js:98:17)
在maybeClose(child_process.js:766:16)
在Process.ChildProcess._handle.onexit(child_process.js:833:5)
Hint: Open the SDK manager by running: C:\Work\WebRTC\android\android-sdk\tools\android.BAT You will require: 1. "SDK Platform" for android-22 2. "Android SDK Platform-tools (latest) 3. "Android SDK Build-tools" (latest)] ERROR building one of the platforms: Error: cmd: Command failed with exit code 2 You may not have the required environment or OS to build this project Error: cmd: Command failed with exit code 2 at ChildProcess.whenDone (C:\Users\anatf\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\ at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:766:16) at Process.ChildProcess._handle.onexit (child_process.js:833:5)
我的系统信息:
运行在Windows
Running on Windows
科尔多瓦CLI:5.1.1
离子版本:1.0.0-beta.14
离子CLI版本:1.6.1
离子应用程序库版本:0.3.3
操作系统:Windows 7 SP1
节点版本:v0.10.35
Cordova CLI: 5.1.1 Ionic Version: 1.0.0-beta.14 Ionic CLI Version: 1.6.1 Ionic App Lib Version: 0.3.3 OS: Windows 7 SP1 Node Version: v0.10.35
安装的平台:Android的4.0.0,3.5.2浏览器,IOS 3.8.0
可用平台:亚马逊fireos,blackberry10,firefoxos,窗户,Windows8的,WP8
Installed platforms: android 4.0.0, browser 3.5.2, ios 3.8.0 Available platforms: amazon-fireos, blackberry10, firefoxos, windows, windows8, wp8
可用Android的目标:
Available Android targets:
ID:1或机器人-22
名称:Android 5.1.1
类型:平台
API等级:22
修订:2
皮肤:HVGA,QVGA,WQVGA400,WQVGA432,WSVGA,WVGA800(默认),WVGA854,WXGA720,WXGA800,WXGA800-7in,AndroidWearRound,AndroidWearRound400x400,AndroidWearRoundChin320x290,AndroidWearSquare,
AndroidWearSquare320x320,AndroidWearRound,AndroidWearRound400x400,AndroidWearRoundChin320x290,AndroidWearSquare,AndroidWearSquare320x320
标签/的ABI:Android的电视/ armeabi-V7A,Android的电视/ x86平台,Android的磨损/ armeabi-V7A,Android的磨损/ 86,默认/ armeabi-V7A,默认/ 86,默认/ x86_64的
id: 1 or "android-22" Name: Android 5.1.1 Type: Platform API level: 22 Revision: 2 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound400x400, AndroidWearRoundChin320x290, AndroidWearSquare, AndroidWearSquare320x320, AndroidWearRound, AndroidWearRound400x400, AndroidWearRoundChin320x290, AndroidWearSquare, AndroidWearSquare320x320 Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, android-wear/armeabi-v7a, android-wear/x86, default/armeabi-v7a, default/x86, default/x86_64
任何人都可以帮我吗?
Anyone can help me ?
推荐答案
由于有人评论,有可能是2个不同的SDK的。看看在C:/用户// Android的SDK和C:/用户//应用程序数据/本地/ Android版/ Android的软件开发工具包
As it was commented, there could be 2 different sdk's. Take a look at the c:/Users//android-sdks and c:/Users//AppData/Local/Android/android-sdks.
从我可以告诉它的文件里引用的这些和它的一个引用缺少所需的文件。试图跨越复制它们。
From what I can tell its referencing either of these and the one its referencing is missing the required files. Trying copying them across.
这篇关于错误:请安装Android的目标:" Android的22 QUOT;当SDK管理器显示它被安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!