Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63984177EE for ; Thu, 24 Sep 2015 09:26:57 +0000 (UTC) Received: (qmail 16432 invoked by uid 500); 24 Sep 2015 09:26:52 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 16412 invoked by uid 500); 24 Sep 2015 09:26:52 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 16401 invoked by uid 99); 24 Sep 2015 09:26:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2015 09:26:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C37CBE00BD; Thu, 24 Sep 2015 09:26:51 +0000 (UTC) From: mleoking To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org Message-ID: Subject: [GitHub] cordova-android pull request: Fixed CB-9697 Cordova emulate for An... Content-Type: text/plain Date: Thu, 24 Sep 2015 09:26:51 +0000 (UTC) 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 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org