0

I'm getting this error enter image description here

I tried to execute the command phonegap platform add android on the command prompt inorder to get the cordova-X.X.X.jar file which enables me to use

import org.apache.cordova.Config;
import org.apache.cordova.Droidgap;

on 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"); command.

Thank you

VeteranLK
  • 717
  • 7
  • 17

1 Answers1

0

I just got it done..

added the following to 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.

After that the command ran smoothly

enter image description here

Community
  • 1
  • 1
VeteranLK
  • 717
  • 7
  • 17