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.
To run commands with superuser privileges, use the sudo command. sudo stands for superuser do. You're asked for the password of the current user. You're asked to enter the password for adminUsername, after which a new shell is opened for that user.
To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh . Select whether you want to import previous Android Studio settings or not, then click OK.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With