Error initializing Cordova: Class not found

后端 未结 13 1405
清歌不尽
清歌不尽 2020-12-14 00:09

I followed the tutorial of Phonegap from the official Phonegap.com site (getting started with Android).

I have created project with following all the steps.

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 00:22

    Just as aharris88 in his answer to this question, I had the [CORDOVA] Error initilizing Cordova: Class not found error message when using Cordova 3.1.0 on my Android dev phone after migrating from Phonegap 3.0.

    All fiddling with the config.xml file in the /platforms/android/res/xml directory did not help. Based on the Stackoverflow answer mentioned above, I tried to "start over" by reinstalling Android platform support:

    cordova platform rm android
    cordova platform add android
    

    After this step it worked again, and I was able to cordova build android && cordova run android without any further problems.

提交回复
热议问题