G
G
GreatRash2016-03-22 11:55:10
JavaScript
GreatRash, 2016-03-22 11:55:10

Teach me how to work with Apache Cordova?

I have a small application. written in the Phaser engine. I want to test it on android. I installed Cordova for myself, according to the instructions from the official site, I collect the application:

C:\> cordova create test
C:\> cd test
C:\> cordova platform add android --save
C:\> cordova build android
C:\> cordova emulate android

As a result, I see not my application, but some kind of left helloworld from cordova. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2016-03-23
@GreatRash

In short, PhoneGap and Cordova can't do anything with pre-existing HTML, CSS, and JS. All they can do is create one single HelloWorld. Which then needs to be ruled by hands, i.e. transfer all your assets there.
At the same time, Cordova is stupid - if Android Studio and Java Machine were not installed by default (on drive C in ProgramFiles), then it does not find the ANDROID_HOME and PATH variables in the registry and every time (!) It has to indicate with its hands where I installed both.
PhoneGap - turned out to be a stupid add-on for cordova, and although there is a gui, it's a little less than useless. But he offers to build in .apk for money. Well done Adobe :-)
Hmm... I thought everything would be easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question