sdkmanager: command not found Error
See original GitHub issueHey @ychescale9 great work and thanks for the action 💪
While running android-emulator-runner
on a self hosted machine, I get the error /bin/sh: sdkmanager: command not found
, it does however work when I run it from the cmd line on my host machine. The strange thing is that it can find adb
but not the sdkmanager
Android Path Information:
This is the configuration in my .zshrc
:
# Android
export ANDROID_HOME=/Users/kyle/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
Error Log:
Run reactivecircus/android-emulator-runner@v2
API level: 29
target: default
CPU architecture: x86
Hardware profile:
AVD name: GithubActions
emulator options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
disable animations: true
Script:
make android-test
Installing latest build tools, platform tools, and platform.
/bin/sh -c \sdkmanager --install 'build-tools;30.0.2' platform-tools 'platforms;android-29' > /dev/null
/bin/sh: sdkmanager: command not found
/Users/kyle/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/kyle/Library/Android/sdk/platform-tools/adb' failed with exit code 1
Error: The process '/bin/sh' failed with exit code 127
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
"sdkmanager: command not found" after installing Android ...
You need to manually start the Android Studio application installed in your system. [ You can search in the application search ...
Read more >[Solved] Android sdkmanager not found Error in Flutter
Delete the "latest" and rename "latest-2" to "latest". This happens when there is "latest" folder while installing Android SKD command-line tools in SDK...
Read more >How to fix Android sdkmanager not found. Update ... - YouTube
Android sdkmanager not found error resolved in flutter. Update to the latest Android SDK and ensure that the cmdline-tools are installed to ...
Read more >Unable to launch Android SDK Manager in Terminal
Say: Mac/Linux: Open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk. But when I navigate...
Read more >Android SDK Manager and Device Manager not working
I believe this error is only seen when using the “Full List (Unsupported)” repository in the SDK Manager. As a workaround, please click...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ychescale9 so we moved to a different machine and decided to use our own scripts that we already had implemented for running emulators and co. locally. This issue is no longer relevant or reproducible for us specifically. Thanks for you time though 🙏
Sorry I haven’t gotten back yet… We’ve moved our self hosted runner to another machine and are having other issues there 😬 Once these issues are fixed I will validate wether or not this is still relevant 👍