Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task 'prepareKotlinBuildScriptModel' not found in project ':app'

Tags:

I am getting this error while gradle sync. This is react native project. enter image description here

like image 295
Sudeep Kumar Avatar asked Oct 10 '20 06:10

Sudeep Kumar


People also ask

How do you solve the task wrapper not found on the project app?

Try: Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

What is prepareKotlinBuildScriptModel?

:prepareKotlinBuildScriptModel Gradle task is executed each time a Gradle task is invoked. Duplicates 1. Duplicates 1 issue (0 unresolved) KTIJ-15840 Kotlin task `prepareKotlinBuildScriptModel` has been added for all Gradle tasks invocations. 1 1.

Why is Gradle build so slow?

Dynamic Dependencies slow down your build since they keep searching for the latest builds every time. To improve the performance we need to fix the version in place. Use only those dependencies that you need.


2 Answers

I was able to work around this issue by adding this line to my build.gradle file:

task prepareKotlinBuildScriptModel {

}
like image 131
esilver Avatar answered Sep 17 '22 11:09

esilver


I had to disable Kotlin in the intellij

Open Preferences>Plugin>Disable Kotlin

enter image description here

like image 29
Jason Kim Avatar answered Sep 17 '22 11:09

Jason Kim