WatermelonDB
WatermelonDB copied to clipboard
Failed to apply plugin [id 'kotlin-android']
each time i run my code i get the same message which is
FAILURE: Build failed with an exception.
-
Where: Build file 'D:\ya rab\PetApp-main\PetApp-main\android\app\build.gradle' line: 25
-
What went wrong: A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'kotlin-android'] The current Gradle version 5.6.2 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin.
-
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
the code which is in line 25 is as following
apply plugin: 'kotlin-android'
https://github.com/Nozbe/WatermelonDB/issues/1268#issuecomment-1052608289