How to run Android Studio 3.0 from command line as root user in Mac

Viewed 9719

I need to run Android Studio 3.0 in root user to give permission to SDK manager (as SDK Manager is no longer Standalone) to install components to the root directory.

If you are getting Permission Denied errors for any component installation, this can be one of the solutions.

1 Answers

If you have installed Android Studio in the default Applications directory, this is where it will be. Else you can cd into it's path

cd /Applications/Android\ Studio.app/Contents/MacOS/

then run it as root user by executing

sudo ./studio

Related