Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Studio Error : Class kotlin.reflect.jvm.internal.FunctionCaller$FieldSetter

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

Already tried below approach

  1. Delete all .gradle files and invalidate/restart studio
  2. Rebuild project
  3. Update kotlin

But after restarting studio this error comes after every few successful builds. I am using Android Studio 3.3 Canary 12 and gradle version 3.3.0-alpha12.

like image 375
NickDroid Avatar asked Sep 27 '18 06:09

NickDroid


People also ask

What is Kotlin internal modifier?

In general, kotlin internal is one of the access modifier types and it is used to declare the datas the inside of the kotlin modules. It has some similar and alternative ideas when compared to the kotlin private modifier.

What is internal in Kotlin?

Introduction to Kotlin Internal Kotlin internal is one of the access modifiers and it is used to declare the datas and it is visible only inside a module. It contains a set of kotlin files and it is compiled together with the modules.

What is the use of Kotlin-reflect annotation?

This annotation marks the experimental kotlin-reflect API that allows to approximate a Kotlin lambda or a function expression instance to a KFunction instance. The behavior of this API may be changed or the API may be removed completely in any further release. Provides a way to suppress JVM access checks for a callable.

What is Kotlin in IntelliJ IDEA?

It contains a set of kotlin files and it is compiled together with the modules. It may be the maven, Gradle sets and Ant tasks which is having the files generated or any other IntelliJ IDEA module.


1 Answers

This issue is resolved in gradle plugin version 3.4.0-alpha01.

To fix this issue, upgrade your gradle version in project level build.gradle

classpath 'com.android.tools.build:gradle:3.4.0-alpha01'
like image 83
Rishabh Sagar Avatar answered Oct 11 '22 14:10

Rishabh Sagar