maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url 'https://maven.google.com/' }
3.2.1以上版本的android studio開發(fā)工具遇到一個(gè)新問題一直卡indexing paused due to batch update不停的轉(zhuǎn)
解決方法有一下兩種方式:
1、第一種解決方式去項(xiàng)目目錄下刪除項(xiàng)目module下所有的.impl文件:
首先我們先Close Project,關(guān)閉項(xiàng)目。
刪除項(xiàng)目下的"***.iml"文件,文件名一般是"項(xiàng)目名.iml"。
重新Open,打開項(xiàng)目,等待項(xiàng)目構(gòu)建。
2、第二種方式,比較簡(jiǎn)單,使用Invalidate Caches / Restart功能清除一下緩存(推薦使用):
點(diǎn)擊File。
選擇 Invalidate Caches / Restart選項(xiàng)清一下緩存。
彈出窗口選擇Invalidate and Restart重啟工程就可以。
3 一、起因
在升級(jí)android studio3.2之后,公司的項(xiàng)目總是Background Tasks 運(yùn)行
Indexing paused due to batch updated 任務(wù)。
如:出現(xiàn)下面情況:
感覺影響啟動(dòng)項(xiàng)目的速度,于是google一下 果然不止我自已遇到這樣的問題。
二、原因
android studio 3.2 版本的Bug( 其實(shí) 我也不清楚… )!!! 反正記錄一下
三、解決方法
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!
處理方法很簡(jiǎn)單,重新導(dǎo)入項(xiàng)目一次就可以解決了!
4 于是進(jìn)入C:\Users.gradle\wrapper\dists目錄下,刪掉那個(gè)沒有下載完成的gradle-x.x-all目錄,重新打開項(xiàng)目,OK!世界又變得美好了
參考 1 https://blog.csdn.net/zengruiyue/article/details/87855075
2 [http://www.itdecent.cn/p/53f41d009452](http://www.itdecent.cn/p/53f41d009452)
3 [https://blog.csdn.net/taowuhua0505/article/details/89013850](https://blog.csdn.net/taowuhua0505/article/details/89013850)
解決indexing paused due to batch update
一次在打開android studio新建項(xiàng)目后,因?yàn)樾陆ǖ膅radle版本太高,我不想讓它下載,取消之后,直接關(guān)閉android studio,重新打開該項(xiàng)目或者新建項(xiàng)目,都會(huì)卡在:indexing paused due to batch update,
解決之一是:進(jìn)入C:\Users\soka.gradle\wrapper\dists目錄下,刪掉那個(gè)沒有下載完成的gradle-x.x-all目錄,重新打開項(xiàng)目