This is a migrated thread and some comments may be shown as answers.

Cannot use device

3 Answers 59 Views
Command-Line Interface
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mOpLin
Top achievements
Rank 1
mOpLin asked on 19 Jul 2015, 04:10 PM

Its giving tis error:

C:\Users\​xx xx\Dropbox\goblintech\ac001\Auto Compartido>appbuilder device
Command failed: C:\Windows\system32\cmd.exe /s /c "C:\Users\xx xx\AppData\Roaming\npm\node_modules\a
ppbuilder\lib\common\resources\platform-tools\android\win32\adb start-server"
"C:\Users\​xx" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

 

 Please help.

3 Answers, 1 is accepted

Sort by
0
mOpLin
Top achievements
Rank 1
answered on 19 Jul 2015, 04:19 PM

Cant deploy

C:\Users\​xx ​xx\Dropbox\goblintech\ac001\Auto Compartido>appbuilder deploy android
Command failed: C:\Windows\system32\cmd.exe /s /c "C:\Users\​xx ​xx\AppData\Roaming\npm\node_modules\appbuilder\lib\
common\resources\platform-tools\android\win32\adb start-server"
"C:\Users\xx" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

 

or other command with android, it work with ios

0
Tsvetomir
Telerik team
answered on 20 Jul 2015, 11:55 AM
Hello Pablo,

Thank you for reporting this issue, I can confirm it is a bug in our CLI.

From the error message I see that the Windows OS username you use contains spaces, which is why the Android-related commands fail. As a workaround until a fix is released, I suggest that you install and configure the path to the Android SDK:
  • Download the Android SDK from here https://developer.android.com/sdk/index.html#Other
  • Follow the installation steps, described here https://developer.android.com/sdk/installing/index.html?pkg=tools. Note that, the installation path should not contain spaces.
  • After the installation is complete, add the following file paths to the PATH system environment variable:
    • Path to tools directory in the Android SDK installation folder. For example, PATH=..;..;C:\Android\android-sdk\tools
    •  Path to platform-tools directory in the Android SDK installation folder. For example, PATH=..;..;C:\Android\android-sdk\platform-tools
Now, AppBuilder CLI will use the Android-related tools from the SDK and both commands should work.

As a token of our gratitude for your report, I've updated your Telerik points.

Kind Regards, Tsvetomir
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
mOpLin
Top achievements
Rank 1
answered on 24 Jul 2015, 04:22 PM
Thanks its working
Tags
Command-Line Interface
Asked by
mOpLin
Top achievements
Rank 1
Answers by
mOpLin
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or