gpt4 book ai didi

android - 执行 org.jetbrains.kotlin.gradle.internal.KaptExecution 时发生故障

转载 作者:行者123 更新时间:2023-12-01 23:28:17 25 4
gpt4 key购买 nike

突然间我开始收到这个错误,我不明白为什么如果有人让我知道这个错误在哪里,就会有足够的帮助。由于 android studio 的新更新,我能得到的就是这个。
我得到的错误的详细摘要。

Task :app:kaptDebugKotlin
ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1C:\Users\shubh\Downloads\MarginCalculator\app\build\generated\source\kapt\debug\com\kotlin_developer\margincalculator\DataBinderMapperImpl.java:10: error: cannot find symbol
import com.kotlin_developer.margincalculator.databinding.FragmentCalculatorScreenBindingImpl;

symbol: class FragmentCalculatorScreenBindingImpl

Task :app:kaptDebugKotlin FAILED
location: package com.kotlin_developer.margincalculator.databinding
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s
29 actionable tasks: 27 executed, 2 up-to-date

最佳答案

Android Studio 的 UI 只是隐藏了错误......
发生错误时,它会在 ListView 中突出显示该项目,并在终端 View 中显示无用的消息。
bad bad
要找到真正的错误,请在 ListView 中选择根项,以便 Android Studio 在终端 View 中显示整个构建输出,然后滚动查找错误。
good good

关于android - 执行 org.jetbrains.kotlin.gradle.internal.KaptExecution 时发生故障,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62131564/

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