android-studio - 如何在构建gradle之前启用文件的默认索引?

标签 android-studio gradle android-gradle-plugin android-build

每次组装时我都看到
“由于批处理更新,索引已暂停”

enter image description here

I want it to be as before, first indexing the files, and then the build.



而且,我不必等到程序集结束或手动按开始按钮进行索引。

请告诉我如何定制它,这可能吗?

我知道Indexing freeze with message: Indexing paused due to batch updated
但我对挂起没有问题,我的问题是在构建项目时暂停了索引编制。

最佳答案

使缓存无效并重新启动对我有用。

只需转到文件>使缓存无效/重新启动。

关于android-studio - 如何在构建gradle之前启用文件的默认索引?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54389337/

相关文章:

android - Web View 不适用于某些特定的 url

java - gradle 无法解决 Nexus 依赖关系

android - 无法通过usb调试安装android应用

android-studio - 更新 Android SDK 和工具时出现错误 "Dependent package with key emulator not found"

android - 升级到 Android Studio 3.4 - Aapt2InternalException : AAPT2: Daemon startup failed

android - Gradle同步失败: Cause: failed to find target with hash string 'android-22'

plugins - 使用Gradle将不同的 jar 上传到Artifactory

java - 如何使用 Gradle 构建没有根目录的多平面目录

android - 无法在对象上找到参数 [目录 'libs'] 的方法 compile()

android - 任务 ':app:transformClassesWithAndroidGradleClassShrinkerForDebug' 执行失败