Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 55B71175FB for ; Fri, 11 Sep 2015 20:35:51 +0000 (UTC) Received: (qmail 24168 invoked by uid 500); 11 Sep 2015 20:35:46 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 24140 invoked by uid 500); 11 Sep 2015 20:35:46 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 24008 invoked by uid 99); 11 Sep 2015 20:35:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 20:35:46 +0000 Date: Fri, 11 Sep 2015 20:35:46 +0000 (UTC) From: "Diego Geffner (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9647) "cordova run android --device" could suggest the user to run "adb devices -l" to see the attached devices, and have some links to how to troubleshoot why a device isn't being picked up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14741500#comment-14741500 ] Diego Geffner commented on CB-9647: ----------------------------------- We could also warn the user if the device appears as: unauthorized (go to the phone and click okay) $ adb devices -l List of devices attached ZX5J35HQMX4 unauthorized > "cordova run android --device" could suggest the user to run "adb devices -l" to see the attached devices, and have some links to how to troubleshoot why a device isn't being picked up > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CB-9647 > URL: https://issues.apache.org/jira/browse/CB-9647 > Project: Apache Cordova > Issue Type: Improvement > Components: CLI > Affects Versions: 5.3.2 > Environment: Windows 10 Entreprise > Reporter: Diego Geffner > Priority: Minor > > "cordova run android --device" could suggest the user to run "adb devices -l" to see the attached devices, and have some links to how to troubleshoot why a device isn't being picked up > I have a device currently connected to my PC, and I get this error and I don't understand why: > $ cordova run android --device > Running command: "c:\Program Files\nodejs\node.exe" "c:\my_project\hooks\after_prepare\010_add_platform_class.js" "c:/my_project" > add to body class: platform-android > Running command: cmd "/s /c ""c:\my_project\platforms\android\cordova\run.bat" --device"" > ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk-windows > JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55 > c:\my_project\platforms\android\cordova\node_modules\q\q.js:126 > throw e; > ^ > ERROR: Failed to deploy to device, no devices found. > ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 1 > You may not have the required environment or OS to run this project > Running adb is useful to see that ADB is not detecting it for some reason: > $ adb devices -l > List of devices attached -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org