question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sdkmanager: command not found Error

See original GitHub issue

Hey @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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hopeman15commented, Jan 6, 2021

@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 🙏

1reaction
hopeman15commented, Dec 9, 2020

Does deleting this folder help?

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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found