Change the Supported Gradle Version
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:
- At the project level, open the
build.gradle
file. - On line number 3, change
id("com.android.application") version "8.1.1" apply false
to beid("com.android.application") version "7.2.2" apply false
. - Open the
gradle-wrapper.properties
. - On line number 4, change
distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip
to bedistributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip
. - Sync the project for changes to apply.
Head back to the setup instructions to finish running your accessibility scan.