Where is cordova-2.7.0.jar?

后端 未结 4 2140
忘了有多久
忘了有多久 2020-12-14 23:31

I struggle to build a first Android app from HTML5.

So, I follow this detailed tutorial...

It seems that I should add a .jar of Cordova to the project\'s lib

4条回答
  •  暖寄归人
    2020-12-15 00:09

    I finally found a solution following the github doc https://github.com/apache/cordova-android#building

    First, you need the commons-codec-1.7.jar file. It's downloaded to cordova-android using create : Check http://cordova.apache.org/docs/en/2.7.0/guide_getting-started_android_index.md.html

    create   "
    
    • project_folder_path is the path to your new Cordova Android project
    • package_name is the package name, e.g. com.YourCompany.YourAppName
    • project_name is the project name, e.g. YourApp (Must not contain spaces)

    This process should download commons-codec-1.7.jar.

    Then, the following step is not explained in the getting started guide: cordova-2.7.0.jar has to be generated with an ant command line, after having copied the commons-codec-1.7.jar to the framework/lib directory.

    android update project -p . -t android-17
    ant jar
    

    And here we go!

提交回复
热议问题