Chetan Joshi
Chetan Joshi

Reputation: 5711

Unit Test coverage not sync and saved in Android Studio Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enabled=true

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

Upvotes: 10

Views: 483

Answers (1)

robigroza
robigroza

Reputation: 589

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

Upvotes: 1

Related Questions