profile
viewpoint

Ask questions[Bug] If there is a space in the ADB path, it will not work properly

set .zshrc PATH="${PATH}":"/Volumes/Macintosh HD/Users/foo/Library/Android/sdk/platform-tools"

Run Debug Android

Debug output

<details> <summary>Debug Console</summary>

デバッグできませんでした。コマンド '/Volumes/Macintosh HD/Users/foo/Library/Android/sdk/platform-tools/adb devices' の実行中にエラーが発生しました : Command failed: /Volumes/Macintosh HD/Users/foo/Library/Android/sdk/platform-tools/adb devices
/bin/sh: /Volumes/Macintosh: No such file or directory```

Environment

  • React Native Tools extension version: 0.16.0
microsoft/vscode-react-native

Answer questions SounD120

Hi @yuki2006 and thanks for your question. It is no need to go down to level of mounted drives to set the path to the Android SDK. You can try to do it using the following recommendations: Could you please try to replace your current content of .zshrc by these lines?

export ANDROID_HOME=/Users/$USER/Library/Android/sdk/
export ANDROID_SDK_ROOT=$ANDROID_HOME
PATH="$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"

Please let us know if this helped.

useful!

Related questions

Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 4
Error while executing command 'react-native run-ios --simulator --no-packager' hot 2
Cannot read property 'getCurrentUserAsync' of undefined hot 1
Expo app doesn't connect to packager hot 1
Current workspace does not contain React Native projects hot 1
Could not debug - error code 604 hot 1
Current workspace does not contain React Native projects hot 1
[Bug][Expo] XDLError: packagerPort must be an integer - vscode-react-native hot 1
Version 0.13 breaks running packager from VS Code from different folder hot 1
Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 1
Starting React packager from VSCode fails hot 1
Can't attach packager for debugging hot 1
Cannot bind listener: operation not permitted hot 1
Not all success patterns were matched. (error code 712) hot 1
Current workspace does not contain React Native projects hot 1
Github User Rank List