android studio加速

    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)目

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容