写代码吧,就是粘贴,复制的过程,有时候不是代码问题,很多时候也是这样,不过出问题后总会有提示,这时,这些提示你就不该忽视它,否则,你后找解决方法时,也有可能找的是错的。确定代码没问题,直接clean一下。
方法是 project ---clean-----选中项目,等待。
再次运行你的项目。