user2126958
user2126958

Reputation: 113

How to regenerate gradlew and gradlew.bat

I delete some flavor from my project. I delete them from hard disk, and from the build.gradle file. It compiles nicely within the android studio, and disappear from the Build Flavorsetting and from the build types.

But when running gradlew from command line, it still ask for the delete flavor and fail

So, how can I regenerate gradlew files in order to be able to use it without the delete flavor?

Upvotes: 3

Views: 5845

Answers (1)

Oguz Ozcan
Oguz Ozcan

Reputation: 1547

You need to run gradle wrapper --gradle-version 2.0 command and change which version you want to have. Or you can add the following lines into your build.gradle file.

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

https://docs.gradle.org/current/userguide/gradle_wrapper.html

Upvotes: 4

Related Questions