android – why doesnt task wrapper function work

android – why doesnt task wrapper function work

HERE IS A FIX :: Add this in Gradle File

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

This fixed it for me :

task wrapper(type: Wrapper){
     gradleVersion = 4.1.2
}

Add this task to build.gradle file

android – why doesnt task wrapper function work

Im not entirely sure why gradle would be updating the gradle-wrapper.properties file like that. But the way the wrapper task works means you need to invoke it to make a change, so try the following commands.

In project/platforms/android/:

  • ./gradlew wrapper – This updates the wrapper to the specified version
  • ./gradlew --version Since gradlew uses the wrapper it will download the newer version if its not already cached on your machine somewhere. At the top it SHOULD say 2.14.1 after doing this

Leave a Reply

Your email address will not be published.