Reputation: 1613
Ok here it goes, I want to use phonegap alright? Yeah it sounds good, awesome yeah whatever. Oh important thing, I'm running on windows 7 x64. Right we got that cleared out.
Q1: Did I get java sdk (yeah not jre - jdk!)? Yes got it!
C:\Program Files\Java\jdk1.7.0_51
Q2: What about ant? That too!
C:\apache-ant-1.9.3
Q3: Ok nice, then where's the android sdk? Everything right here: (got the android developer tools)
C:\adt
Q4: Hmm alright... Wait let me cut you right there. The system variables, ah yup, got them!
ANDROID_HOME --> C:\adt\sdk
ANT_HOME --> C:\apache-ant-1.9.3
JAVA_HOME --> C:\Program Files\jdk1.7.0_51
XCOPY --> C:\Windows\System32
PATH --> %XCOPY%;%ANDROID_HOME%\bin;%ANT_HOME%\bin;%JAVA_HOME%\bin;C:\Program Files\nodejs;C:\adt\sdk\platform-tools;C:\adt\sdk\tools
1st problem: I run the android
command but nothing works.
2nd problem: Let me break it into steps:
cordova platform add android
that's workingphonegap install android
Not Workingphonegap run android
NopeWhichever I try running in order to compile. It just won't work... I get the following error:
$ phonegap local run android
[phonegap] compiling Android...
[error] An error occurred while building the android project.Error executing "ant debug -f "C:\Users\Mark\Documents\Projects\buddytalk\platforms\android\build.xml"":
BUILD FAILED
C:\adt\sdk\tools\ant\build.xml:932: The following error occurred while executing this line:
C:\adt\sdk\tools\ant\build.xml:950: null returned: 1
Total time: 11 seconds
ant seems to be the problem right now...
Thanks in advance :)
Upvotes: 1
Views: 1462
Reputation: 2479
Steps:
Just keep using one of the two, I personally suggest Cordova, if you are not using Phonegap build.
Upvotes: 1