The import org.apache.cordova cannot be resolved

后端 未结 7 452
花落未央
花落未央 2020-12-08 15:05

For some reason, after going through Phonegap\'s non-inclusive instructions (it doesn\'t even mention setting up ANT, or the headaches with Ant and JDK), this doesn\'t work

7条回答
  •  囚心锁ツ
    2020-12-08 15:38

    Run cordova -d build. If it says anything about "Unable to locate tools.jar", fix that. Then completely rebuild the application by running cordova platform rm android. Also remove the project from eclispe. Then recreate the app by running cordova platform add android + cordova build. Finally add the project in eclipse again.

    org.apache.cordova should now be included and everything should be working.

提交回复
热议问题