Contents

如果通过eclipse编译android工程,但是不去运行

Contents

有时候我们仅仅需要编译出apk文件,但是不想自动运行,而eclipse的自动build和手动build都不靠谱,网上找了很多资料都没解决,折腾过程中无意间发现的解决方案,不敢独享,特别纪录下,希望帮到有需要的人。

解决方案:

右键工程— run as — Run configurations — Android Application中选择不需要自动运行的工程,如图设置为no nothing

http://www.ithome.me/wp-content/uploads/2014/10/QQ图片20141016203403.jpg