当前位置: 首页 > 知识库问答 >
问题:

执行org.jetbrains.kotlin.gradle.internal.KaptExecution时出错

聂昱
2023-03-14

突然我开始得到这个错误,我不明白为什么如果有人让我知道这个错误在哪里,会有足够的帮助。因为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个答案

艾英范
2023-03-14

Android Studio的UI只是隐藏了错误...

 类似资料:
  • 首先, 我很清楚关于这个错误的很多问题已经在这里发布了,而且没有一个问题似乎有一个合适的解决方案,尤其是我需要的那个。 我被下面的错误困扰了一个多星期。 我正在开发一个android项目,该项目正在使用Kotlin,MVVM,Clean Arch和导航组件进行构建。 我最近添加了realm database,为此我不得不添加以下插件。 我想真正的问题是从这里开始的。 (之后,我添加了一个Datab

  • 我刚遇到这个错误,它突然来了,破坏了我的项目。有没有人可以帮助我解决这个错误:

  • 执行 时出错。 这是错误日志: 11-05 05:03:20.171:E/Android runtime(3171):致命异常:async task # 1 < br > 11-05 05:03:20.171:E/Android runtime(3171):Process:com . example . MySQL test,PID:3171 < br > 11-05 05:03:20.171:E

  • 问题内容: 我正在尝试执行以下代码。 它正在生成以下错误。 线程“主”中的异常java.lang.NoClassDefFoundError:com / google / inject / Provider位于java.lang.ClassLoader.defineClass1(本机方法),位于java.lang.ClassLoader.defineClass(未知源),位于java.securit

  • java.lang.RuntimeException:执行doInBackground()E/Android runtime(695)时出错:at Android . OS . async task $ 3 . done(async task . Java:200)E/Android runtime(695):at Java . util . concurrent . future task $

  • 执行获取HQL查询时出现异常。查询大部分时间都有效,但有时会显示此异常 数据库是MySQL,使用的服务器是JBoss 5.1.0 GA 显示的错误是: 组织。冬眠例外GenericJDBCException:无法在组织上执行查询。冬眠例外SQLStateConverter。在组织中处理非特定异常(SQLStateConverter.java:126)。冬眠例外SQLStateConverter。o