I’m trying to update a Kotlin Multiplatform project to use convention plugins. I’ve also updated Gradle from v7 to v8, and thus the Android version from v7 to v8.
The Kotlin docs say “Manually apply an Android Gradle plugin: com.android.application or com.android.library”, but when I do this I get an error:
Copy code
com.android.build.gradle.internal.BadPluginException: The 'java' plugin has been applied, but it is not compatible with the Android plugins.
Is there an example of how to add the Kotlin Multiplatform plugin and the Android Library plugin?
m
mbonnin
07/11/2023, 2:32 PM
I think it's order dependent, do you have android first?