Android : failed to start emulator

2019-08-19 12:40发布

问题:

I am unable to start my android emulator in eclipse . I get hit with the following error message always

"Failed to start emulator: Cannot run program "/Users/anandmadhusoodanan/Desktop/Assignments/Spring-2012/Embedded_Systems_Programming/android-sdk-macosx//tools/emulator": error=1, Operation not permitted" where
 "/Users/anandmadhusoodanan/Desktop/Assignments/Spring-2012/Embedded_Systems_Programming/android-sdk-macosx" is the path of my sdk.

I have tried re-installing the ADT plug-in, the sdk and even eclipse. I am using Mac OS.

回答1:

The @ symbol indicates that there are extended attributes for the files in question. To verify the extended attributes applied to the files use:

ls -l@

You'll probably find (as I did) that there is a com.apple.quarantine attribute on the files which can be removed with:

xattr -dr com.apple.quarantine sdkFolder

Where sdkFolder should be replaced with the name of the folder you extracted the SDK to.



回答2:

Check that you have execute permissions on the emulator

Try

$chmod 755 emulator