cordova build android 编译不了 求高手解答
androidSDK都装完了。运行还是报错。。。折腾了两天,烦死了d:\ceshi>cordovabuildandroidRunningcommand:d:\ceshi\...
android SDK 都装完了。运行还是报错。。。折腾了两天,烦死了
d:\ceshi>cordova build android
Running command: d:\ceshi\platforms\android\cordova\build.bat
[Error: Please install Android target: "android-22".
Hint: Open the SDK manager by running: D:\adt-bundle-windows-x86\sdk\tools\andro
id.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: d:\ceshi\platforms\android\cordova\b
uild.bat: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: d:\ceshi\platforms\android\cordova\build.bat: Command failed with exit co
de 2
at ChildProcess.whenDone (C:\Users\kevin\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
d:\ceshi> 展开
d:\ceshi>cordova build android
Running command: d:\ceshi\platforms\android\cordova\build.bat
[Error: Please install Android target: "android-22".
Hint: Open the SDK manager by running: D:\adt-bundle-windows-x86\sdk\tools\andro
id.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: d:\ceshi\platforms\android\cordova\b
uild.bat: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: d:\ceshi\platforms\android\cordova\build.bat: Command failed with exit co
de 2
at ChildProcess.whenDone (C:\Users\kevin\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
d:\ceshi> 展开
4个回答
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你装sdk哪个版本? 检查 jdk 配置路径 path 之类。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询