谁能帮我解决这个错误?
FAILURE:构建失败并出现异常。
任务 ':app:compileDebugJavaWithJavac' 执行失败。
Failed to query the value of task ':app:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'. Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, C:\Users\any user\Documents\Desktop\Chaquopy 9.1\app\build\generated\ap_generated_sources\debug\out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@7424ad41) before task ':app:compileDebugJavaWithJavac' has completed is not supported
使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
此构建中使用了已弃用的 Gradle 功能,使其与 Gradle 8.0 不兼容。
使用“--warning-mode all”显示各个弃用警告。
见 https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
2 秒内构建失败
12 个可操作的任务:12 个最新的
最佳答案
这是一个与 AGP 相关的问题:https://youtrack.jetbrains.com/issue/KTIJ-19252
将 AGP 更新到 4.2.2 或更高版本可能会解决此问题。
关于python - 查询任务 ':app:compileDebugJavaWithJavac'属性 'options.generatedSourceOutputDirectory'的值失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69598542/