10

Below Alert prompted after run unit test cases in Android Studio for code coverage. After Recompile clicked below error comes.

Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enabled=true

Solution Tried :

Clean Build

Rebuild

Invalidate Cache & Restart

Optimize Imports

enter image description here

Chetan Joshi
  • 5,582
  • 4
  • 30
  • 43

1 Answers1

1

I had a similar problem with JaCoCo test coverage, and the same dialog was prompted to me when I tried to run Android Studio coverage.

The issue for the JaCoCo was related to the Android Gradle Plugin issue. AGP <7.2 had an issue with creating test coverage reports.

Upgrading Android Gradle Plugin solved this issue for me.

For more details related to this, you can check here: Jacoco code coverage 0% in Android-kotlin project

robigroza
  • 559
  • 1
  • 5
  • 22