brew tap homebrew/cask and install android-sdk using brew install android-sdk -cask You will have to add the ANDROIDHOME to profile (.zshrc or. But i might suggest updating the installer and making sure you have the latest build-tools first. In homebrew the android-sdk has migrated from homebrew/core to homebrew/cask. Integrate with the Android SDK Linux, echo export ANDROIDHOMEHOME/Android/Sdk/ > /.bashrc macOS, echo export ANDROIDHOMEHOME/Library/Android/Sdk/. ![]() ![]() If you really want to use the old installer, you can maybe get around it by adding an empty "tools" folder. You need to set the ANDROIDHOME to the right path of the Android SDK and set the JAVAHOME environment variable, and then add them to you path. The older libGDX installer that i was using i believe only looked for a "tools" folder (but newer android sdk has split this into "cmdline-tools" and "build-tools"). ![]() Make sure the Android SDK Build-Tools is installed. Extract the ZIP to an easily-accessible location (like the Desktop for example). Open up SDK Manager in Android Studio (it's under the config menu on the start screen of android studio) Appearance and Behavior -> System Settings -> Android SDK How to set up ADB on macOS Download the Android SDK Platform Tools ZIP file for macOS. It should be sufficient to define 'ANDROIDHOME'. The default location of the cmdline-tools (which the sdkmanager is part of) should be ANDROIDHOME/cmdline-tools/latest/bin. So if you're using the latest installer ( ), make sure those exist. The path ANDROIDHOME/tools/bin/sdkmanager should not exist. ![]() The latest (as of this writing) libGDX starter looks for at least 2 folders: "build-tools" and "platforms". I can tell you what was my issue, and hopefully it helps you, too.
0 Comments
Leave a Reply. |