android studio之无限scan files into index的一种解决方法

启动android studio后,IDE一直卡在Loading projectscan files into index过程。
试了很多参考方法不行,强制关掉IDE后,去到工程根目录通过命令行执行build命令:

./gradlew build

构建成功的会类似提示:

BUILD SUCCESSFUL in 33s
116 actionable tasks: 42 executed, 74 up-to-date

之后再打开android studio就正常了。你如果碰到这个问题的话,可以试一下这个方法哦。

发布了372 篇原创文章 · 获赞 1031 · 访问量 242万+

猜你喜欢

转载自blog.csdn.net/moxiaomomo/article/details/88663132
今日推荐