I have already tried deleting the config file and reinstall android studio. I still have problem in opening / running the ide. I tried to run it as administrator, using the terminal:
cd /Applications/Android\ Studio.app/Contents/MacOS/
sudo ./studio
I've managed to open it. But unable to run it on emulator or anything. I've manage to open the sdk tool though. But when i try to run the emulator, this is what i get:
9:36 AM Emulator: WARNING: Unknown AVD name [7.0_API_22], use -list-avds to see valid list.
9:36 AM Emulator: HOME is defined but there is no file 7.0_API_22.ini in $HOME/.android/avd
9:36 AM Emulator: (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)
9:36 AM Emulator: WARNING: Unknown AVD name [7.0_API_22], use -list-avds to see valid list.
9:36 AM Emulator: HOME is defined but there is no file 7.0_API_22.ini in $HOME/.android/avd
9:36 AM Emulator: (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)
9:36 AM Emulator: WARNING: Unknown AVD name [7.0_API_22], use -list-avds to see valid list.
9:36 AM Emulator: HOME is defined but there is no file 7.0_API_22.ini in $HOME/.android/avd
9:36 AM Emulator: (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)
9:36 AM Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
9:36 AM Emulator: Process finished with exit code 1
Please help me. I have used it before, and I can open it easily and run it without the need on using the terminal each time i tried to open it. I can even open the emulator. FYI, I'm using mac OSX version 10.11.6