项目-右键-属性,勾选如下配置试试
参考资料
http://stackoverflow.com/questions/17146438/error-while-trying-to-run-project-uncaught-exception-thrown-by-method-called-thr