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文件全部删掉,然后重新导入你的资源到新的工程也可以。
* What went wrong:
Execution failed for task ':app:buildLib'.
> Cannot get property 'packageOutputFile' on null object