cordova.js is missing on a new project

前端 未结 3 1993
不思量自难忘°
不思量自难忘° 2020-12-05 12:31

I have a brand new install of cordova3.1.0-0.1.0. I create a project like this cordova create project com.example.project Project. The project is created under

相关标签:
3条回答
  • 2020-12-05 13:12

    Try to cd into the dir and build the web version:

    cordova plugin add cordova-plugin-inappbrowser
    
    0 讨论(0)
  • 2020-12-05 13:14

    No, you're all good. Cordova.js will be generated when you build a specific platform (i.e. cordova build android). So it will be in your project/platforms/android/assets/www/ folder but not your project/www/ folder.

    0 讨论(0)
  • 2020-12-05 13:37

    I had to change my build target from the default Android (Active) to just plain Android from the dropdown menu and then it generated the file and built fine. It seems like an initialization issue with Visual Studio 2017.

    0 讨论(0)
提交回复
热议问题