org.jetbrains.kotlin.gradle.internal.KaptExecution の実行中にエラーが発生しました 質問する

org.jetbrains.kotlin.gradle.internal.KaptExecution の実行中にエラーが発生しました 質問する

突然このエラーが発生し始めましたが、原因がわかりません。このエラーがどこにあるのかを誰かに教えていただければ、非常に助かります。私が知ることができるのは、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

ベストアンサー1

Android Studio の UI はエラーを隠していました...

エラーが発生すると、リスト ビューで項目が強調表示され、ターミナル ビューに役に立たないメッセージが表示されました。悪い悪い

実際のエラーを見つけるには、リスト ビューでルート項目を選択して、Android Studio がターミナル ビューにビルド出力全体を表示するようにし、スクロールしてエラーを見つけます。良い良い

おすすめ記事