安卓开发--android library projects cannot be launched错误

最新因为学习,问技术友要了几个源代码,导入源代码的时候无法进行真机或者虚拟机测试。

原因:android library projects cannot be launched

百度了一下,解决方法很简答

  1. 点击运行的工程右键出现Properties

    安卓开发--android library projects cannot be launched错误
    安卓开发--android library projects cannot be launched错误
  2.  

    点击Properties,进入

     

    安卓开发--android library projects cannot be launched错误
  3.  

    把is library 前的对勾去掉

  4.  

    返回自己的project,右键点击Run As 的第一项Android Application

    安卓开发--android library projects cannot be launched错误
  5.  

    选择虚拟机或者真机就可以运行了

    安卓开发--android library projects cannot be launched错误
  6.  

    如果出现如图所示就运行成功了

    安卓开发--android library projects cannot be launched错误
  7.