Skip to content

Instantly share code, notes, and snippets.

@hcosta
Last active August 29, 2015 14:01
Show Gist options
  • Save hcosta/f6b8517ffe390de7d8ba to your computer and use it in GitHub Desktop.
Save hcosta/f6b8517ffe390de7d8ba to your computer and use it in GitHub Desktop.
Variable: ANDROID_HOME Value: C:\Development\adt-bundle\sdk
Variable: ANT_HOME Value: C:\Development\apache-ant
Variable: JAVA_HOME Value: C:\Program Files\Java\jdk1.6.0_45
Next I added the following values to the """""Path system variable""""" NO USER in Environment Variables:
%JAVA_HOME%\bin;%ANT_HOME%\bin;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;
instalar el jdk y meterlo al path
----
Update: If you upgrade to Phonegap 3.3 you shouldn't need to do this anymore. Details on updating Phonegap: http://phonegap.com/blog/2013/12/13/phonegap-release/
I had the exact same problem and found a solution that works:
Download the source ZIP for Cordova: http://cordova.apache.org/#download
Extract the 'cordova-android' ZIP anywhere. Inside will be a 'framework' folder.
In eclipse open the newly unzipped 'cordova-android/framework' folder as an existing project.
In eclipse right click on this new 'Cordova' project -> Properties -> Android . Make sure 'Is Library' is checked.
Right click on your app's project -> Properties -> Android. In the Library section choose 'Add'. Select your Cordova project.
All done, import should now resolve!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment