![]() ![]() => Linking Binary 'avdmanager' to '/usr/local/bin/avdmanager' => Moving Generic Artifact 'cmdline-tools' to '/usr/local/share/android-command $ brew install android-commandlinetools => Installing Cask android-commandlinetools Instead, please use the new command-line tools package.Ī quick search reveals that in homebrew land, this new "command-line tools" package is called android-commandlinetools. This SDK Tools package is deprecated and no longer receiving updates. If you don't want the full android-studio development app (Intellij IDE, etc) and just want the new command line tools. export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home See for brew, python3 and NodeJS on nvm see gist Java 14ĪdoptOpenJDK: # brew tap adoptopenjdk/openjdk via caskīrew install adoptopenjdk/openjdk/adoptopenjdk8Īlternative: Do not follow this step if followed the step before brew install java8īe sure JAVA_HOME is exported on your bash profile or zshrc depending the shell in usage. ![]() ![]() To use the latest version of Git, install the same via Homebrew by running:Īnd set the PATH variable so that /usr/local/bin takes precedence over /usr/bin.A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.Ĭonsidering the SDK is installed under /Users//Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly. To resolve the issue and to use the Xcode/system installed copy of git, run: However, Xcode/system installed copy (which should take precedence due to $PATH variable configuration) wasn't accessible because developer path couldn't be found. This indicates that Homebrew installed copy is still present in the system. The above gave the following output, respectively: active developer path does not exist Now, run the following commands (using absolute path) to check if git package is actually installed: (in the above output is formatted for readability by replacing : with newline) Applications/Android Studio.app/Contents/plugins/flutter/bin In OP's case, running the above commands gave the following output respectively: git is /usr/bin/gitĪnd Workbooks.app/Contents/SharedSupport/path-bin I don't know what to try next! I don't really know what I'm doing with macOS and I'm a bit concerned I'll break stuff if I fiddle too much. Then tried Homebrew, which again seemed to work but made no difference, so I uninstalled it. I tried installing git from the downloadable package, but that made no difference (it seemed to install ok, but I don't know where it installed and it's still looking for the old version). I can't upgrade my macOS version because it says no updates are available! I tried to reinstall Xcode from the App Store, but I'm getting: Xcode can’t be installed on “Macintosh HD” because macOS version 10.14.3 or later is required. Software Update shows no updates are available. If I then try Xcode-select -install, I get: xcode-select: error: command line tools are already installed, use "Software Update" to install updates Use `sudo xcode-select -switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select -install` to install the standalone command line developer tools. If I open a terminal window and type git -version, I get the following error: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist I recently uninstalled Xcode because I never use it, but that seems to have broken Git and I can't figure out how to fix it. I've had git running on my MacBook Pro (macOS High Sierra 10.13.6) for ages.
0 Comments
Leave a Reply. |