You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TECHNICAL] Update Android Gradle Plugin version #4478
Just to make clear: Gradle and Android Gradle Plugin are different things.
Gradle: it's the base build system to compile the whole project. It can be set in Android Studio going to File > Project Structure > Project > Gradle Version. Currently we're using the 7.5 version.
Android Gradle Plugin: it's an extension for Gradle that provides the necessary tools to build Android apps. It can be set in libs.version.toml in the androidGradlePlugin variable. Currently we're using the 7.4.2 version.
When we update the Android Gradle Plugin version, we also need to update the Gradle version (see compatibilities).
There is also an inter-dependency with the Java JDK version used.
JDK: it's the Java version used to build and create the Android app. It can be set going to Android Studio > Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK. Currently we're using JBR 17, which stands for JetBrains Runtime and is an enhanced JDK of the corresponding version which includes optimizations for Android Studio.
There's a fantastic tool embedded in Android Studio that allows an assisted upgrade of the AGP version, with everything it implies (breaking changes, updating other necessary dependencies...). It lets the user decide about several questions introduced in newer AGP versions, and then performs automatically the necessary changes. This tool can be accessed by going to Tools > AGP Upgrade Assistant....
After performing some updates, the status of the different dependencies is the newest version for each of them:
Activity
AwaisKhan128 commentedon Sep 29, 2024
@jesmrec May I move on with it to upgrade gradle version?
jesmrec commentedon Sep 30, 2024
@AwaisKhan128 sorry, it was already assigned, i have just added it.
[-][FEATURE REQUEST] Update gradle version[/-][+][FEATURE REQUEST] Update Gradle version[/+][-][FEATURE REQUEST] Update Gradle version[/-][+][TECHNICAL] Update Gradle version[/+]JuancaG05 commentedon Oct 28, 2024
Just to make clear: Gradle and Android Gradle Plugin are different things.
File > Project Structure > Project > Gradle Version. Currently we're using the 7.5 version.libs.version.tomlin theandroidGradlePluginvariable. Currently we're using the 7.4.2 version.When we update the Android Gradle Plugin version, we also need to update the Gradle version (see compatibilities).
[-][TECHNICAL] Update Gradle version[/-][+][TECHNICAL] Update Android Gradle Plugin version[/+]JuancaG05 commentedon Nov 4, 2024
There is also an inter-dependency with the Java JDK version used.
Android Studio > Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK. Currently we're using JBR 17, which stands for JetBrains Runtime and is an enhanced JDK of the corresponding version which includes optimizations for Android Studio.JuancaG05 commentedon Nov 4, 2024
There's a fantastic tool embedded in Android Studio that allows an assisted upgrade of the AGP version, with everything it implies (breaking changes, updating other necessary dependencies...). It lets the user decide about several questions introduced in newer AGP versions, and then performs automatically the necessary changes. This tool can be accessed by going to
Tools > AGP Upgrade Assistant....After performing some updates, the status of the different dependencies is the newest version for each of them: