gpt4 book ai didi

android - "Injecting the input artifact of a transform as a File has been deprecated."

转载 作者:行者123 更新时间:2023-12-04 23:50:58 28 4
gpt4 key购买 nike

我收到警告 "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."同步我的 Gradle 时。

这到底是什么意思?

我在堆栈跟踪中看到有关 com.android.build.gradle.internal.dependency.ExtractAarTransform 的警告。 .我确实有两个使用 @aar 的依赖项在我的 build.gradle 中:
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 插件支持增量编译。增量编译跟踪构建之间源文件的更改,因此只有受这些更改影响的文件才会被编译。

关于android - "Injecting the input artifact of a transform as a File has been deprecated.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60675289/

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