Reputation: 5711
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
Upvotes: 10
Views: 483
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