cordova/phonegap does not make android directory

前端 未结 3 1480
野趣味
野趣味 2020-12-10 06:16

ant, java, node.js, phonegap, and my adobe account are all setup properly. The getting started guide says I should be able to type:

cordova create hello com.e         


        
3条回答
  •  时光取名叫无心
    2020-12-10 07:17

    First of all, you should be using phonegap instead of cordova to create the project folder structure.

    phonegap create hello com.example.hello "HelloWorld"
    

    enter image description here

    And secondly, please note that build command uses two way to build for any specific platform. One using the phonegap build API (online) using the below command

    phonegap build android
    

    and second one locally using below command,

    phonegap local build android
    

    enter image description here

    So you should try to use the second command for creating the android specific folder and use it with eclipse. You can look for more details over here http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface

    When you run the build local command, android folder is created inside the platforms folder, and you should always modify the code(html, js, css) on the www folder present outside the platforms folder. The changes will get reflected once you again run the build command. This helps you maintain single code base for multiple platform ( which is the basis aim of using Phonegap)

    enter image description here

    enter image description here

    enter image description here

    Note: you need to have latest android sdk tools (vs18) to run on Android SDK.

提交回复
热议问题