Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression

I run a kotlin project successfully on my desktop, but when I import the same project on my laptop and when I rebuild the project, it's throwing "org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression".

As suggested in net, I tried with clean build, invalidate cache and restart. I deleted the cache folders and logs but no results. I have tried Googling, but found no answer for this particular problem.

Details: Current kotlin plugin version: 1.3.61-release-Studio3.5-1, latest version of plugin is installed, using Android Studio 3.5.2

Any help is apreciated!

like image 588
Annie Avatar asked Dec 03 '19 09:12

Annie


2 Answers

Update Kotlin Plugin for Android Studio

I was facing a similar error, updating Kotlin Plugin and restarting Android Studio fixed the issue for me

like image 107
Arun Yogeshwaran Avatar answered Oct 16 '22 18:10

Arun Yogeshwaran


This seems to be a sync issue. To solve this, I performed these two steps in succession and then re-ran the project:

  • Deleted the entire build folder
  • Build > Clean-Project
like image 23
Taslim Oseni Avatar answered Oct 16 '22 19:10

Taslim Oseni