Matias Gentiletti
Matias Gentiletti

Reputation: 153

Cordova/Phonegap not launches the application in the emulator

After running cordova run android and build the application, open the emulator but never load the application. In the terminal returns

LAUNCH SUCCESS

but it's not true. What's the problem?

Ubuntu 14.04 LTS 64 bit Cordova 5.0.0 Phonegap 5.0.0-0.27.1 Apache Ant(TM) version 1.9.3

Upvotes: 1

Views: 999

Answers (1)

proprit
proprit

Reputation: 938

I assume you have the same problem as me (Cordova "hello world" app won't display). I found a way to pass through it (but I don't really understand the underlying causes).

On Cordova 5.0.0, adb commands to install the apk can be found at line 101 of file platforms\android\cordova\lib\device.js (and at line 311 of platforms\android\cordova\lib\emulator.js for cordova emulate android):

adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"

Current command returns to me: "Error: unknown option -d"! If you simply delete the "-d" option, applications run normally with cordova run android.

Upvotes: 1

Related Questions