2014-03-05 452 views
0

我無法在Android模擬器運行的PhoneGap應用, 我下面一步的 步驟的過程 - http://docs.phonegap.com/en/2.9.0/guide_getting-started_android_index.md.html如何在Android模擬器上運行PhoneGap應用程序?

但我得到的錯誤

Description Resource Path Location Type 
Config cannot be resolved PhoneGapdemo.java /PhoneGapdemo/src/com/appovative/testpgap line 32 Java Problem 
DroidGap cannot be resolved to a type PhoneGapdemo.java /PhoneGapdemo/src/com/appovative/testpgap line 25 Java Problem 
DroidGap cannot be resolved to a type PhoneGapdemo.java /PhoneGapdemo/src/com/appovative/testpgap line 30 Java Problem 
The import org.apache.cordova cannot be resolved PhoneGapdemo.java /PhoneGapdemo/src/com/appovative/testpgap line 23 Java Problem 
The method onCreate(Bundle) of type PhoneGapdemo must override or implement a supertype method PhoneGapdemo.java /PhoneGapdemo/src/com/appovative/testpgap line 28 Java Problem 

回答

0

有一個特殊的原因你使用舊的2.9版本?

無論如何,我認爲你的問題是phonegap 2.9.1發生了變化,並且api不再在jar中,而是在一個名爲cordova-lib的單獨項目中。當你在eclipse中導入項目時,你應該看到兩個項目,而不是一個。添加這兩個項目應該可以解決您的問題。

相關問題