diff --git a/bin/templates/cordova/lib/builders/ProjectBuilder.js b/bin/templates/cordova/lib/builders/ProjectBuilder.js index f4be4aeb..e92a18f5 100644 --- a/bin/templates/cordova/lib/builders/ProjectBuilder.js +++ b/bin/templates/cordova/lib/builders/ProjectBuilder.js @@ -268,7 +268,7 @@ class ProjectBuilder { // update/set the distributionUrl in the gradle-wrapper.properties const gradleWrapperPropertiesPath = path.join(self.root, 'gradle/wrapper/gradle-wrapper.properties'); const gradleWrapperProperties = createEditor(gradleWrapperPropertiesPath); - const distributionUrl = process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL || 'https://services.gradle.org/distributions/gradle-6.8.3-all.zip'; + const distributionUrl = process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL || 'https://services.gradle.org/distributions/gradle-6.6.1-all.zip'; gradleWrapperProperties.set('distributionUrl', distributionUrl); gradleWrapperProperties.save(); diff --git a/bin/templates/project/app/build.gradle b/bin/templates/project/app/build.gradle index 7f82d47f..580bfd85 100644 --- a/bin/templates/project/app/build.gradle +++ b/bin/templates/project/app/build.gradle @@ -84,7 +84,7 @@ allprojects { } task wrapper(type: Wrapper) { - gradleVersion = '6.8.3' + gradleVersion = '6.6.1' } // Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties. diff --git a/test/android/wrapper.gradle b/test/android/wrapper.gradle index 80394fa7..bd50de8f 100644 --- a/test/android/wrapper.gradle +++ b/test/android/wrapper.gradle @@ -17,5 +17,5 @@ */ wrapper { - gradleVersion = '6.8.3' + gradleVersion = '6.6.1' } diff --git a/test/androidx/wrapper.gradle b/test/androidx/wrapper.gradle index 80394fa7..bd50de8f 100644 --- a/test/androidx/wrapper.gradle +++ b/test/androidx/wrapper.gradle @@ -17,5 +17,5 @@ */ wrapper { - gradleVersion = '6.8.3' + gradleVersion = '6.6.1' }