同步渐变时收到警告"Injecting the input artifact of a transform as a File has been deprecated. This is scheduled to be removed in Gradle 6.0. Declare the input artifact as a Provider<FileSystemLocation> instead."
。
这到底意味着什么?
我在堆栈跟踪中看到了关于com.android.build.gradle.internal.dependency.ExtractAarTransform
的警告。在我的构建中,我确实有两个使用@aar
的依赖项
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.16.8@aar') { transitive = true }
和
implementation 'com.amazonaws:aws-android-sdk-cognitoauth:2.16.8@aar'
警告所指的可能是其中之一吗?如果我已经在用这些东西做什么了,我该怎么办?
基于https://kotlinlang.org/docs/reference/kapt.html
从1.3.30版本开始,kapt支持增量注释处理作为一个实验特性。目前,只有在使用的所有注释处理器都是增量的情况下,注释处理才能是增量的。
默认情况下,增量注释处理从1.3.50版本开始启用。要禁用增量注释处理,请将此行添加到gradle.properties
文件:
kapt.incremental.apt=false
增量编译Kotlin-Gradle插件支持增量编译。增量编译跟踪生成之间源文件的更改,因此只有受这些更改影响的文件才会被编译。