Home > other >  How can i fix Task 'wrapper' not found in project ':app'
How can i fix Task 'wrapper' not found in project ':app'

Time:10-02

enter image description here

I literally get this error is all projects i open can any one help me fix this ?

CodePudding user response:

This is because your build.gradle file doesn't have a wrapper task. Add this code to build.gradle:

task wrapper(type: Wrapper){
   gradleVersion = '7.2'
}

You can replace 7.2 with the gradle version you want, then run gradle wrapper task.

  • Related