Error in Kotlin but using only Java - Class kotlin.reflect.jvm.internal.FunctionCaller$FieldSetter

后端 未结 4 1997
日久生厌
日久生厌 2021-02-01 02:11

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.Fun         


        
相关标签:
4条回答
  • 2021-02-01 02:53
    1. Install the latest Gradle version (1.10.2 at the moment of writing).
    2. Install the latest version of Kotlin plugin: go to Settings Ctrl+Alt+S > Languages & Frameworks > Kotlin Updates > select Update channel > click [Check again]
      My current Kotlin plugin version is 1.3.0-rc-57.

    3. Execute Build > Clean Project to remove temporary gradle files.

    4. File > Invalidate Caches / Restart...

    5. After restarting Sync Project with Gradle files and Make Project (Ctrl+F9).

    0 讨论(0)
  • 2021-02-01 03:07

    Will be fixed in Android Studio 3.3 Canary 14: https://issuetracker.google.com/issues/115798277

    In the mean time, use Invalidate Caches/Restart

    0 讨论(0)
  • 2021-02-01 03:08

    I solved it this way:

    1. Delete all the .gradle folders
    2. Invalidate caches / restart everything is OK for me.
    0 讨论(0)
  • 2021-02-01 03:09
    Settings -> Languages & Frameworks -> Kotlin Updates -> Update channel -> Early Access Preview/Stable -> Update -> Restart
    

    Or:

    Tools -> Kotlin -> Configure Kotlin Plugin Update -> Update channel -> Early Access Preview/Stable -> Update -> Restart
    
    0 讨论(0)
提交回复
热议问题