Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova loading app into android emulator

I am totally new to Cordova, but now I have installed Cordova with NPM and installed Android SDK and set up an AVD which seems to work perfectly, until I want to emulate my project. Where the actual app for some reason is not loaded into the emulator.

The following action is done:

marvin:HelloWorld$ cordova -d emulate android
cordova library for "android" already exists. No need to download. Continuing.
Wrote out Android application name to "HelloWorld"
Wrote out Android package name to "com.example.hello"
Calling plugman.prepare for platform "android"
Preparing android project...
Processing configuration changes for plugins.
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Running on emulator for platform "android" via command ""/home/marvin/Development/projects/HelloWorld/platforms/android/cordova/run" --emulator" (output to follow)...

Then it start Android emulator up, but the app is not there. Does anybody have a suggestion to fix this issue, so I am capable of actually testing in my emulator?

Thank you in advance.

like image 214
user1645908 Avatar asked Dec 02 '22 18:12

user1645908


1 Answers

I just had the same problem, and I was missing PATH to platform-tools in android sdk folder, after I added it everything was in place.

like image 97
mirazasx Avatar answered Dec 16 '22 02:12

mirazasx