[
https://issues.apache.org/jira/browse/CB-8912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14556423#comment-14556423
]
Grolleau edited comment on CB-8912 at 5/22/15 4:58 PM:
-------------------------------------------------------
I have the same issue. I run "cordova run android" it says it's deployed and
started but actually nothing happens.
I only have the issue since I upgraded the CLI and android platform.
Deploying the app using adb after cordova build android works.
I filled a question on stackoverflow with full details :
http://stackoverflow.com/questions/30308317/cordova-run-android-not-deploying-any-more-with-cordova-5-cordova-android-4-0-0
and have seen other SO question with similar issue since then :
http://stackoverflow.com/questions/30335214/cordova-application-not-launching-after-updating-to-cordova-android-4-0-0
http://stackoverflow.com/questions/30048429/cordova-does-not-actually-install-app-on-android-device/30331751#30331751
http://stackoverflow.com/questions/30149970/cordova-hello-world-app-wont-display
In this latest post there is an explanation to the issue :
cordova\lib\device.js and cordova\lib\emulator.js contain the line
adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"
wich returns: "Error: unknown option -d"
It seems removing the -d option solves the issue.
-d option is documented in adb install documentation : -d: Allow version code
downgrade.
so I guess the issue is caused by a too old version of adb? (going to check
that)
was (Author: nicolas.grolleau):
I have the same issue. I run "cordova run android" it says it's deployed and
started but actually nothing happens.
I only have the issue since I upgraded the CLI and android platform.
Deploying the app using adb after cordova build android works.
I filled a question on stackoverflow with full details :
http://stackoverflow.com/questions/30308317/cordova-run-android-not-deploying-any-more-with-cordova-5-cordova-android-4-0-0
and have seen other SO question with similar issue since then :
http://stackoverflow.com/questions/30335214/cordova-application-not-launching-after-updating-to-cordova-android-4-0-0
http://stackoverflow.com/questions/30048429/cordova-does-not-actually-install-app-on-android-device/30331751#30331751
http://stackoverflow.com/questions/30149970/cordova-hello-world-app-wont-display
In this latest post there is an explanation to the issue :
cordova\lib\device.js and cordova\lib\emulator.js contain the line
adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"
wich returns: "Error: unknown option -d"
It seems removing the -d option solves the issue.
> cordova does not install the app in my device
> ---------------------------------------------
>
> Key: CB-8912
> URL: https://issues.apache.org/jira/browse/CB-8912
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Windows 8
> Reporter: yasin mansour
> Assignee: Joe Bowser
>
> cordova run android command line does not install the app in my devices
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]