[ 
https://issues.apache.org/jira/browse/CB-14165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521902#comment-16521902
 ] 

ASF GitHub Bot commented on CB-14165:
-------------------------------------

raphinesse closed pull request #457: CB-14165 : (android) Fix for device still 
connecting issues
URL: https://github.com/apache/cordova-android/pull/457
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/templates/cordova/lib/emulator.js 
b/bin/templates/cordova/lib/emulator.js
index 82106bb74..243b1fb53 100644
--- a/bin/templates/cordova/lib/emulator.js
+++ b/bin/templates/cordova/lib/emulator.js
@@ -342,7 +342,8 @@ module.exports.wait_for_emulator = function (port) {
         }, function (error) {
             if ((error && error.message &&
             (error.message.indexOf('not found') > -1)) ||
-            (error.message.indexOf('device offline') > -1)) {
+            (error.message.indexOf('device offline') > -1) ||
+            (error.message.indexOf('device still connecting') > -1)) {
                 // emulator not yet started, continue waiting
                 return self.wait_for_emulator(port);
             } else {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Android Emulator gives 'device still connecting' error regardless of API 
> version
> --------------------------------------------------------------------------------
>
>                 Key: CB-14165
>                 URL: https://issues.apache.org/jira/browse/CB-14165
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Rizal Solichudin
>            Priority: Minor
>
> cordova emulate android gives error
> (node:4822) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
> (rejection id: 1): Failed to execute shell command 
> "getprop,dev.bootcomplete"" on device: Error: adb: Command failed with exit 
> code 1 Error output: error: device still connecting
> even though the device is launched successfully



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to