第一次执行Cordova build android失败原因一则
来源:互联网 发布:vb keycode用法 编辑:程序博客网 时间:2024/06/09 21:37
执行结果显示:
Running command: cmd “/s /c “D:\Kapsel_Projects\HelloWorld\platforms\android\cordova\build.bat””
[Error: Please install Android target: “android-22”.
Hint: Open the SDK manager by running: C:\Users\Administrator\AppData\Local\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\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
大概就是说Android SDK环境有问题,下面三个东东只是少一个。
1. “SDK Platform” for android-22
2. “Android SDK Platform-tools (latest)
3. “Android SDK Build-tools” (latest)]
我的环境是Android Studio,在tools菜单里面安装SDK 2.2嘛
Android_HOME环境变量也是指到了正确的SDK目录
稍后,找到Android_HOME所在目录,执行SDK Manager.exe,在界面中却发现 没有android-22 SDK!!!!
马上在SDK Manager.exe界面里面安装android-22 SDK。
回到命令行执行Cordova build android成功。
估计Android Studio的SDK目录或者环境,还是和我命令行Android_HOME所在目录里面的SDK内容有差异。
- 第一次执行Cordova build android失败原因一则
- Android build失败 原因总结:
- cordova build android 补充
- 执行ionic build android (或cordova build android)打包时报错的解决方案
- crontab 执行失败原因
- cordova build android遇到的问题
- cordova build android -- 报错 gradle 异常
- crontab脚本执行失败原因
- cordova百度定位插件定位失败错误代码162原因
- Android打包失败原因
- java File delete()执行失败原因
- crontab 脚本执行失败找到原因
- crontab 执行失败的几种原因
- 自动化脚本执行失败原因分析
- Spring task @Async执行失败原因分析
- cordova android ant 打包出现 build.xml:694: ${aapt}错误
- cordova build android 报异常 not reserve enough space 解决方法
- cordova build app时候 提示没有gradle android studio
- document和innerText、innerHTML区别
- Android源码编译---Nexus 设备出厂镜像
- [HihoCoder]#1359 : 震荡数组
- The new starting....
- javah提示:找不到 ‘XX.XXXX.XX.CLASSNAME’ 的类文件
- 第一次执行Cordova build android失败原因一则
- 极光推送(JPush)-认识提升
- 每日一linux命令(54)-------wc命令
- Spring Cloud 统一配置
- ionic:css实现带字的滑动 toggle
- hive 中 Order by, Sort by ,Dristribute by,Cluster By 的作用和用法
- CSU1105 打怪升级 湖南第七届省赛
- Sql Server 2012 存储过程的单步调试
- 博弈论初步