Configuring Gradle for Android Development
solutions for common Gradle issues faced in Android development for beginners
Plugin and compatible Gradle Version
Gradle Plugin
define Gradle Version
- android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
define Build Plugin
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
the two versions (e.g. 7.6.1 and 7.4.2) must be compatible to build correctly
Proxy
follows the proxy setting configured in Android Studio
- Preferences | Appearance & Behavior | System Settings | HTTP Proxy