Hi, I’m new to Flutter and I’m trying to build the...
# community-support
h
Hi, I’m new to Flutter and I’m trying to build the APK for my project. However, I keep encountering the following error: ‘Version not compatible.’ I’ve tried multiple versions, but the issue persists. Below is the full error message. Can anyone help me resolve this? I need like an end-to-end help/guidance to resolve this issue n successfully generate APK.
Copy code
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'kotlin-android'.
   > Could not create an instance of type org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget.
      > Could not generate a decorated class for type KotlinAndroidTarget.
         > com/android/build/gradle/api/BaseVariant

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 7s
v
Did you follow the advice in the error? If not, why not? If yes, why don't you provide the additional information, especially the stacktrace or much better the build
--scan
URL?