I have a Project in HTML/CSS/JS etc, I want to make its APK. My current project folder structure contains these things:
projectName
css
js
lib
templates
views
app.js
index.html
So how can I add Cordova to my project which is ALREADY CREATED?
Create a new cordova project.
Add your files into the /www folder of the project.
Reference the "cordova.js" file in your index.html page.
PS: Please dont alter or change "cordova.js", "cordova_plugins.js" and "plugins" folder when adding files to your /www folder. (Cordova 3.0 +)
As QuickFix said, "you don't add cordova to a html5 project but you add your html5 files to a cordova project."
Hope it helps.
If you have created this folders and files manually, I suggest you to create another new project with Cordova command line, then move your files to the newly created project.
cordova create hello com.example.hello HelloWorld
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With