I'm installing the new phone gap 3.0 with the all-mighty command line.
cordova create hello com.example.hello HelloWorld
cordova platform add android
When I open the android project in eclipse I get this error on HelloWorld.java
:
The import org.apache.cordova cannot be resolved
I guess I have a missing library but how to I solve this if the only way to install 3.0 is thought the command line.
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/
Note: Make sure in eclipse you import Existing Android Code into Workspace NOT 'Existing Projects into Workspace
I had the exact same problem and found a solution that works:
All done, import should now resolve!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With