Task not found in root project


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM