简体   繁体   中英

Android Studio error launching emulator: permission denied (on Mac OSX)

When I try to launch the emulator on Android Studio(1.5.1) on my Mac OSX(Yosemite) I get this error:

Error launching emulator: Cannot run program "/Users/S/Library/Android/sdk/tools/emulator": error=13, Permission denied

What is causing this and how can I solve it?

Try to append $ANDROID_HOME/emulator:$ANDROID_HOME/tools in your . It will somehow looks like export PATH=$M2_HOME/bin:$ANDROID_HOME:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$PATH Make sure $ANDROID_HOME/emulator comes before $ANDROID_HOME/tools reload your bash profile.

Now try to run command which emulator in terminal. Run command in terminal to open emulator emulator -avd Pixel_4_API_30

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM