[英]Cannot Add Android Platform on phonegap
I'm getting this error 我收到了这个错误
I tried to execute the command phonegap platform add android
on the command prompt inorder to get the cordova-XXXjar
file which enables me to use 我尝试在命令提示符下执行命令phonegap platform add android
以获取cordova-XXXjar
文件,这使我可以使用
import org.apache.cordova.Config;
import org.apache.cordova.Droidgap;
on Android Studio 在Android Studio上
My System Variables are as follows 我的系统变量如下
ANDROID_HOME=E:\Android\sdk\
ANT_HOME=C:\ant\
ANT_OPTS=-Xmx256M
JAVA_HOME=C:\Progra~1\Java\jdk1.7.0_25\jre\
Path= .... C:\Program Files\nodejs\;%ANT_HOME%\bin\;%ANDROID_HOME%\tools\;%ANDROID_HOME%\platform-tools\;
I have to extend
my MainActivity
class to DroidGap
and run super.loadURL("linktomyindexfile");
我必须extend
我的MainActivity
类extend
到DroidGap
并运行super.loadURL("linktomyindexfile");
command. 命令。
Thank you 谢谢
I just got it done.. 我刚刚完成..
added the following to Path
将以下内容添加到Path
%JAVA_HOME%\bin\
added this as a system variable 将此添加为系统变量
ANDROID_HOME=E:\Android\sdk
installed SDK Tools for API V19 using SDK Manager after I got this error. 我收到此错误后,使用SDK Manager为API V19安装了SDK工具。
After that the command ran smoothly 之后命令运行顺利
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.