使用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文件全部刪掉,然后重新導入你的資源到新的工程也可以。