GitHub user mleoking opened a pull request:

    https://github.com/apache/cordova-android/pull/219

    Fixed CB-9697 Cordova emulate for Android versions 4.1.1 does not work

    After running 'cordova emulate android' the apk is not installed & shown on 
the emulator despite the log shows the app is successfully launched.
    
    This issue is related to https://issues.apache.org/jira/browse/CB-9080 and 
https://issues.apache.org/jira/browse/CB-8912. These two previous issues fix 
the problem in 'device.js' and error in 'emulator.js' is still not corrected.
    
    The `emulator.js` file try to run this command:
    
    exec, 'adb -s ' + target.target + ' install -r -d "' + apk_path + '"', 
os.tmpdir(), execOptions
    
    The '-d' option is not supported by Android 4.1.1
    
    Remove the '-d' option will fix this issue.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mleoking/cordova-android 
mleoking-patch-1-4.1.x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/219.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #219
    
----
commit 682c709e96670718c30f27bda0991c6e70826d60
Author: Changwang Zhang <mleok...@gmail.com>
Date:   2015-09-24T09:15:36Z

    Fixed CB-9697 Cordova emulate for Android versions 4.1.1 does not work
    
    After running 'cordova emulate android' the apk is not installed & shown on 
the emulator despite the log shows the app is successfully launched.
    
    This issue is related to https://issues.apache.org/jira/browse/CB-9080 and 
https://issues.apache.org/jira/browse/CB-8912. These two previous issues fix 
the problem in 'device.js' and error in 'emulator.js' is still not corrected.
    
    The `emulator.js` file try to run this command:
    
    exec, 'adb -s ' + target.target + ' install -r -d "' + apk_path + '"', 
os.tmpdir(), execOptions
    
    The '-d' option is not supported by Android 4.1.1
    
    Remove the '-d' option will fix this issue.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to