I get this error when try to run my Android application and I am not using Kotlin at all, application is written in Java...

Class kotlin.reflect.jvm.internal.FunctionCaller$FieldSetter can not access a member of class com.android.build.gradle.tasks.ManifestProcessorTask with modifiers "private"

推荐答案

我是这样解决的:

  1. Delete all the .gradle folders
  2. Invalidate caches / restart everything is OK for me.

Kotlin相关问答推荐

如果一项工作失败,请继续在Kotlin 等待其他工作/子元素完成

关键字';在When Kotlin When-语句中

为什么会出现Kotlin.Unit错误以及如何修复它?

init中的NPE抽象函数变量

匹配在单词边界上包含特殊字符的变量字符串的正则表达式

JavaFX - 你如何在 Kotlin 中使用 MapValueFactory?

OnClickListener 未在 ConstraintLayout 上触发

找不到 androidsdk.modules

如何退出 Kotlinc 命令行编译器

零安全的好处

如何在 Kotlin 中为变量设置监听器

如何使用 Kotlin Coroutines 使 setOnClickListener debounce 1 秒?

launch 仅从 Kotlin 1.3 开始可用,不能在 Kotlin 1.2 中使用

Kotlin中具有多个参数的绑定适配器

ObjectAnimator.ofFloat 不能直接在kotlin中取Int作为参数

Kotlin 错误:public function exposes its 'public/*package*/' return type argument

Kotlin中对象和数据类的区别是什么?

Android Compose 生产准备好了吗?

Android room DAO 接口不适用于继承

为什么在 Kotlin 中return可以返回一个return?