Error trying to run Android application on emulator using phone conversation, how can I fix it?

I have a phone version 3.0.0-0.14.3 installed on Ubuntu 12.04.

I want to run an application with an 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 application runs on the device without problems.

Please, help!

+7
android android-emulator ubuntu cordova
source share
3 answers

Finally, I found the answer to my question.

I was getting this error because I did not create an Android virtual device. Having created one, everything worked fine.

At the command prompt, simply type: android avd to display the AVD Manager window, then you can create an Android virtual device.

Hope this helps someone.

+19
source share

In the new version, adb moves to a new folder in my environment. D: \ Android \ Android-SDK \ platform tools. Therefore, you need to include this new location in the path.

0
source share

I am using Cordova over MacOSX. You should try something like:

 sudo android create avd --name myCordova --target 1 --abi default/armeabi-v7a --force 

instead:

 android create avd --name myCordova --target 1 --abi default/armeabi-v7a --force 

It works for me

0
source share

All Articles