WatermelonDB icon indicating copy to clipboard operation
WatermelonDB copied to clipboard

Failed to apply plugin [id 'kotlin-android']

Open shawki99 opened this issue 2 years ago • 1 comments

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'

shawki99 avatar May 16 '22 00:05 shawki99

https://github.com/Nozbe/WatermelonDB/issues/1268#issuecomment-1052608289

KrisLau avatar Jun 27 '22 17:06 KrisLau