天天看點

AndroidStudio-> default not found的随手一記

遇到的問題:

   從git上clone了以前的項目,裡面有很多個modules,一直報錯Error:Configuration with name 'default' not found. 然後看as的日志,也看不出什麼名堂。

解決辦法:

   百度,google了很多,也沒解決,偶然看到一篇文章說道,每個module都有個build檔案,是以就檢查了一下每個module的build,果然發現一個module的 build的檔案不見了。補上後sync一下,編譯通過。

AndroidStudio-> default not found的随手一記

我的項目缺失的就是它。