/bin/sh: sdkmanager: command not found
See original GitHub issueFor 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:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top 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 >
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
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 forsdkmanager
etc.I’m fixing it now.
Thanks for help, it fixed all failures! 😃