3.2.1以上版本的android studio開發工具遇到一個新問題一直卡indexing paused due to batch update不停的轉
解決方法有一下兩種方式:
1、第一種解決方式去項目目錄下刪除項目module下所有的.impl文件:
首先我們先Close Project,關閉項目。
刪除項目下的"***.iml"文件,文件名一般是"項目名.iml"。
重新Open,打開項目,等待項目構建。
2、第二種方式,比較簡單,使用Invalidate Caches / Restart功能清除一下緩存(推薦使用):
點擊File。
選擇 Invalidate Caches / Restart選項清一下緩存。
彈出窗口選擇Invalidate and Restart重啓工程就可以。
3 一、起因
在升級android studio3.2之後,公司的項目總是Background Tasks 運行
Indexing paused due to batch updated 任務。
如:出現下面情況:
感覺影響啓動項目的速度,於是google一下 果然不止我自已遇到這樣的問題。
二、原因
android studio 3.2 版本的Bug( 其實 我也不清楚… )!!! 反正記錄一下
三、解決方法
I faced the same issue with Android Studio 3.2. Invalidated the cache and restarted Android Studio, but it still did not work for me. Then I just re-imported the project and it worked!
處理方法很簡單,重新導入項目一次就可以解決了!
4 於是進入C:\Users\.gradle\wrapper\dists目錄下,刪掉那個沒有下載完成的gradle-x.x-all目錄,重新打開項目,OK!世界又變得美好了
參考 1 https://blog.csdn.net/zengruiyue/article/details/87855075
2 https://www.jianshu.com/p/53f41d009452
3 https://blog.csdn.net/taowuhua0505/article/details/89013850