解决eclipse 提示 android library projects cannot be launched

在eclipse中运行Android项目,提示: Android library projects cannot be launched

主要原因是当前项目设置成了Android库项目,改回Android项目就可以了。

解决办法如下:

右键工程根目录->properties

左侧选择->android

把 is library勾选去掉,

解决eclipse 提示 android library projects cannot be launched