Android : failed to start emulator

拟墨画扇 提交于 2019-12-12 00:07:23

问题


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


来源:https://stackoverflow.com/questions/9935270/android-failed-to-start-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!