Home > Net >  why does gradle download 5.2.1 when in gradle-wrapper.properties it says 6.4.2 and why is my gradle
why does gradle download 5.2.1 when in gradle-wrapper.properties it says 6.4.2 and why is my gradle

Time:02-10

I've written version 6.4.2 in gradle.wrapper but gradle still thinks version

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where: Build file '/home/pc-name/Documents/android_native_project/app/build.gradle' line: 21

  • What went wrong: A problem occurred evaluating root project 'app'.

Failed to apply plugin [id 'com.android.internal.version-check'] Minimum supported Gradle version is 6.4-rc-2. Current version is 5.2.1. If using the gradle wrapper, try editing the distributionUrl in /home/pc-name/gradle/wrapper/gradle-wrapper.properties to gradle-6.4-rc-2-all.zip

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ==============================================================================

2: Task failed with an exception.

  • What went wrong: A problem occurred configuring root project 'app'.

Could not get unknown property 'android' for root project 'app' of type org.gradle.api.Project.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ==============================================================================

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

gradle-wrapper.properties

#Thu Feb 10 06:25:54 WIB 2022 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https://services.gradle.org/distributions/gradle-6.4-rc-2-all.zip

my project dir: '/home/pc-name/Documents/android_native_project'

from above log detected that i have to change gradle version in : /home/pc-name/gradle/wrapper/gradle-wrapper.properties

CodePudding user response:

  •  Tags:  
  • Related