2014-02-26 42 views
1

當我在Eclipse中運行一個簡單的例子,我收到錯誤:PhoneGap的Android項目不工作

cordova activity cannot be resolved to a type, 
The import org.apache.cordova cannot be resolved, 

請幫我找到解決方案。

+0

關注此文章http://techniques-android.blogspot.in/2012/06/making-phonegap-development-environment.html – Aamirkhan

+0

您正在使用哪個版本的Cordova?從3.0開始,Eclipse開發不再需要eclipse。 –

回答

0

轉到命令提示符,執行命令$ cordova。 看看你是否正確安裝了科爾多瓦。 其他在Eclipse中,轉到項目,然後「清理」您的項目一次。