Android平台指南麻烦通过命令行添加一个平台 [英] Android Platform Guide trouble with adding a platform through the command line
本文介绍了Android平台指南麻烦通过命令行添加一个平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
As aa早期信息这是我的问题。
As aa early info this is my issue.
C:\apps\hello>cordova platform add android
[Error: An error occured during creation of android sub-project.
Creating Cordova project for the Android platform:
Command failed to execute : ant jar
这是我所做的:
- 我安装了所有的Java Dev包(一切)
- 我安装了Apache ANT,并创建了环境变量(它们工作)
- 我为adt-bundle创建了PATH的环境变量
我想要的是
cordova platform add android
cordova emulate android
推荐答案
我安装了JRE而不是JDK ...我没有Java安装专家,但这是我的错误。
I installed the JRE instead of the JDK... Im no expert on Java installations, but this was my error.
这篇关于Android平台指南麻烦通过命令行添加一个平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文