Change the Supported Gradle Version

Link to Change the Supported Gradle Version copied to clipboard
Free Trial

When using the axe DevTools Mobile Analyzer Project in Android Studio, the project is setup for Android Gradle plugin 8.1.1. If the app under test does not support version 8, follow the below steps to change to a supported version.

Guidelines to change from Gradle version 8 to version 7:

  1. At the project level, open the build.gradle file.
  2. On line number 3, change id("com.android.application") version "8.1.1" apply false to be id("com.android.application") version "7.2.2" apply false.
  3. Open the gradle-wrapper.properties.
  4. On line number 4, change distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip to be distributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip.
  5. Sync the project for changes to apply.

Head back to the setup instructions to finish running your accessibility scan.