[
https://issues.apache.org/jira/browse/CB-4285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13765856#comment-13765856
]
mike billau commented on CB-4285:
---------------------------------
I was having a similar issue to Lisa, on a Win 7 machine, the emulator opened
successfully but did not install the app onto the AVD. I checked and I was
running an Oracle JDK (was not having the security issues.) It turns out the
problem was that the emulator was opening an AVD based on Android API level 8
(Android 2.2), but the sample Cordova app's AndroidManifest had
min-target-sdk=10 (Android 2.3.3). Once I updated the AVD, "cordova emulate
android" would successfully open the emulator (and, after a few minutes) deploy
the app.
The only time I ever saw an error message was in the terminal, a few minutes
after the emulator had opened:
Starting Intent < act=android.intent.action.MAIN
cmp=com.example.hello/.HelloWorld >
Error type 3
Looks like a slightly different issue than Lisa's, with the same symptoms;
documenting it here just for completeness. Maybe it would be nice to include a
check for your AVD's SDK version and print a warning if it is too low.
> Windows cordova emulate command doesn't install project
> -------------------------------------------------------
>
> Key: CB-4285
> URL: https://issues.apache.org/jira/browse/CB-4285
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Environment: Windows 7
> Reporter: Lisa Seacat DeLuca
> Assignee: Braden Shepherdson
>
> I am able to add the android platform to a test cordova cli project and build
> just fine. When i go to run on an emulator the emulator opens but the
> project is never installed. This is the very simple case, no plugins were
> added.
> C:\workspaces\cordovacli\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.helloworld"
> 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
> ""C:\workspaces\cordovacli\helloworld\platforms\android\cordova\run"
> --emulator" (output to fol
> low)...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira