|If you are facing an error like that on new MacOS version.|
|xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun|
|It means that you need to install XCode command line, open a Terminal and run this command:|
|$ xcode-select --install|
|If you want to download and install Command Line tools manually, it can be downloaded from: https://developer.apple.com/download/more/|
When I try
The issue came up when I open up my Android Studio and shows this popup below:
The image said that
And as for my macOS setup was from Mojave and I upgrade it to Catalina, this solution fixed my issue. Thank you so much for all the hard work you guys put into this!!!
Hello @123abceng, I was getting the same error in the beginning and then I figured out that when this message pops up it means that the server is already updated and that the xcrun or xcode is already installed. So, I have deleted all the xcrun and xcode files from my system and then directly pasted this xcode command in my terminal. And it worked. I hope it works for you too.