李sir_Blog

博客园 首页 联系 订阅 管理

使用AS开发安卓,导入一个工程遇到一个问题,***是工程名称,具体如下:

Error:FAILURE: Build failed with an exception.


* What went wrong:
Task '' not found in root project 'android-visualizer-master1'.


* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

这是因为AS的早期版本错误配置了iml文件,添加了一个"<component name="FacetManager">" XML 这个不存在的属性.

所以,我们只要把这个属性的内容全部删掉就ok了<component name="FacetManager"> ... </component>

 

还有中方法,把工程下.idea的文件盒iml文件全部删掉,然后重新导入你的资源到新的工程也可以。

posted on 2015-11-18 22:32  李sir  阅读(11639)  评论(0编辑  收藏  举报