Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error trying to run android app onto emulator with phonegap, how can I fix it?

I have phonegap 3.0.0-0.14.3 installed on Ubuntu 12.04.

I want to run the app with android emulator. When I run phonegap run android I get the following:

[phonegap] compiling Android...
[phonegap] successfully compiled Android app
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
   [error] An error occurred while emulating/deploying the android project.Warning : [ --debug | --release | --nobuild ] not specified, defaulting to --debug
Cleaning project...

The app run onto a device without problem.

Please help!

like image 347
avolquez Avatar asked Oct 10 '13 13:10

avolquez


1 Answers

Finally I found an answer to my question.

I was getting this error because I had not created an android virtual device. After having created one, everything worked normally.

On command prompt just type : android avd to display de AVD Manager window, then you can create an android virtual device.

I hope this is helpful to someone.

like image 177
avolquez Avatar answered Sep 20 '22 11:09

avolquez