天天看点

indexing paused due to batch update 错误的解决办法

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     

继续阅读