Java – New phonegap 3.0 import org apache. Cordova can’t solve it

I'm using the omnipotent command line to install the new phone gap 3.0

cordova create hello com.example.hello HelloWorld
cordova platform add android

When I open an Android project in eclipse, I'm in HelloWorld Get this error on Java:

The import org.apache.cordova cannot be resolved

I think I have a missing library, but if I solve this problem, if the only way to install 3.0 is considered to be the command line

Solution

Update: if you upgrade to phonegap 3.3, you should no longer need to do so For more information about updating phonegap: http://phonegap.com/blog/2013/12/13/phonegap-release/

Note: make sure to import the existing Android code into workspace in eclipse and import the "existing project" into workspace

I have exactly the same problem and find a solution:

>Download Cordova's source zip: http://cordova.apache.org/#download >Extract the zip of 'Cordova Android' anywhere, and there will be a "framework" folder inside. > Open the newly decompressed "Cordova Android / framework" folder in eclipse as an existing project. > Right click the new "Cordova" project in eclipse – > properties – > Android Make sure yes library is selected Right click the item of your application – > properties – > Android system In the library section, select Add Select your Cordova project

All completed, the import should be solved now!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>