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.

/bin/sh: sdkmanager: command not found

See original GitHub issue

For the last day or two, all actions have been failing with this message:

Installing latest build tools, platform tools, and platform.
/bin/sh -c \sdkmanager --install 'build-tools;30.0.3' platform-tools 'platforms;android-29' > /dev/null
/bin/sh: sdkmanager: command not found
/Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused

As recently as four days ago, actions were successful, and logs appeared as follows. Note the additional first step.

Installing new cmdline-tools.
/usr/bin/unzip -q /Users/runner/work/_temp/1f68391f-809c-4848-9a14-8eca0e8ed308
Installing latest build tools, platform tools, and platform.
/bin/sh -c \sdkmanager --install 'build-tools;30.0.3' platform-tools 'platforms;android-29' > /dev/null
Installing latest emulator.
/bin/sh -c \sdkmanager --install emulator > /dev/null
[...]

I can see from your repository’s main page that the latest release was 8 days ago. That suggests to me that the change was not in your code, but with the underlying GitHub’s host. Maybe they added a partial installation of the command line tools, which tricks your action into believing it already has everything it needs even though it actually doesn’t?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ychescale9commented, Jan 13, 2021

Ah I see. You’re using macos-11 which has the cmdline-tools installed so this action skips the initial downloading and configuration of the cmdline-tools, which also skips adding the path for sdkmanager etc.

I’m fixing it now.

0reactions
s-ayush2903commented, Jan 29, 2021

Thanks for help, it fixed all failures! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

"sdkmanager: command not found" after installing Android SDK
You need to manually start the Android Studio application installed in your system. [ You can search in the application search bar in...
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 >
[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 >
sdkmanager.bat from command line tools (Windows) does not ...
Open command prompt and cd to the bin directory, attempt to run sdkmanager --list - it will report Error: Could not find or...
Read more >
SDK Manager | Android Developers - MIT
On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk . You...
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