gpt4 book ai didi

android - 如何修复记录为警告的 "android.enableSeparateAnnotationProcessing is experimental and unsupported"?

转载 作者:太空狗 更新时间:2023-10-29 15:27:58 29 4
gpt4 key购买 nike

我在我的 gradle.properties 文件中添加了一个新选项:

android.enableSeparateAnnotationProcessing=true

但是我从编译器/构建器那里得到了以下警告:

WARNING: The option setting android.enableSeparateAnnotationProcessing=true is experimental and unsupported.

我也尝试将其设置为 false,但我收到以下消息:

Gradle may disable incremental compilation as the following annotation processors are not incremental: compiler-1.1.1.jar (android.arch.persistence.room:compiler:1.1.1), compiler-4.8.0.jar (com.github.bumptech.glide:compiler:4.8.0), butterknife-compiler-8.6.0.jar (com.jakewharton:butterknife-compiler:8.6.0). Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.


环境:

JRE 1.8.0_152-release-1136-b06 amd64
JVM OpenJDK 64 位服务器虚拟机,由 JetBrains s.r.o 提供
Android Studio 3.2.1 构建#AI-181.5540.7.32.5056338
Gradle 4.10.3
Android Gradle 插件:3.3.1

安卓文档:

When you include this flag, the Android Gradle plugin executes the annotation processors in a separate task and allows the Java compilation task to run incrementally. https://developer.android.com/studio/releases/gradle-plugin

最佳答案

这是一项新功能。警告就是这样。它已经有效。

该警告将在 Android Studio 的 future 版本中消失。

关于android - 如何修复记录为警告的 "android.enableSeparateAnnotationProcessing is experimental and unsupported"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54588337/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com