how to find cordova.jar in latest version of phonegap 2.9.1?

前端 未结 4 1018
予麋鹿
予麋鹿 2021-02-09 01:43

I download latest version phonegap-2.9.1 zip file but it not contain cordova.jar and when i search on google the i got on answer like navigate folder to lib/android/framework d

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-09 02:11

    You need to download an extra file called CORODOVA-ANDRIOD. You can download it from https://github.com/apache/cordova-android

    Download zip file to your computer and then extract it. Look into that folder, you can see FRAMEWORK folder.

    Now open CMD Prompt. navigate to that framework folder (For me it is like this - F:\Softwares\cordova-android-master\framework> ) and write this command

    " android update project -p . -t android-17 "

    if necessary add --subprojects

    " android update project -p . -t android-17 --subprojects "

    Remember that android-17 is the api verison. Make sure you have that versions installed. I have android 2.3.3 version api installed. so I changed that -17 to -10.

    After compiling android update project,

    enter command : " ant jar " If there are no errors you can see that corodova.jar file in that framework folder.

提交回复
热议问题