Skip to content

Update Android Gradle Plugin to 8.11.0 and Gradle Wrapper to 8.14.3 #3172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

FilipeMarch
Copy link
Contributor

Already tested here and it's working fine:
On buildozer.spec:

android.api = 36
android.minapi = 24
p4a.source_dir = /home/kivyschool/python-for-android
[INFO]:    Will compile for the following archs: arm64-v8a
[INFO]:    Found Android API target in $ANDROIDAPI: 36
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/kivyschool/.buildozer/android/platform/android-ndk-r25b
[INFO]:    Found NDK version 25b
[DEBUG]:   
[DEBUG]:   	Welcome to Gradle 8.14.3!
[DEBUG]:   	
[DEBUG]:   	Here are the highlights of this release:
[DEBUG]:   	 - Java 24 support
[DEBUG]:   	 - GraalVM Native Image toolchain selection
[DEBUG]:   	 - Enhancements to test reporting
[DEBUG]:   	 - Build Authoring improvements
[DEBUG]:   
[DEBUG]:        BUILD SUCCESSFUL in 12s
[DEBUG]:        34 actionable tasks: 33 executed, 1 up-to-date
[DEBUG]:   

Summary

  • gradle-wrapper.properties: distributionUrl now points to gradle‑8.14.3‑all.zip
  • build.tmpl.gradle:
    • classpath updated from 'com.android.tools.build:gradle:8.1.1' to 'com.android.tools.build:gradle:8.11.0'
    • Repository mirror updated from jcenter() to mavenCentral().

Motivation

I tried to compile my application using android.api = 36 but started getting these logs:

[INFO]:    Detected highest available build tools version to be 36.0.0
[DEBUG]:   -> running gradlew clean assembleDebug
[DEBUG]:       WARNING: We recommend using a newer Android Gradle plugin to use compileSdk = 36
[DEBUG]:       
[DEBUG]:       This Android Gradle plugin (8.1.1) was tested up to compileSdk = 34.
[DEBUG]:       
[DEBUG]:       You are strongly encouraged to update your project to use a newer
[DEBUG]:       Android Gradle plugin that has been tested with compileSdk = 36.
[DEBUG]:       
[DEBUG]:       If you are already using the latest version of the Android Gradle plugin,
[DEBUG]:       you may need to wait until a newer version with support for compileSdk = 36 is available.
[DEBUG]:       
[DEBUG]:       To suppress this warning, add/update
[DEBUG]:           android.suppressUnsupportedCompileSdk=36
[DEBUG]:       to this project's gradle.properties.
[DEBUG]:       
[DEBUG]:       > Task :processDebugMainManifest
[DEBUG]:       /home/kivyschool/test/.buildozer/android/platform/build-arm64-v8a/dists/kivy_reloader/src/main/AndroidManifest.xml:55:18-50 Warning:
[DEBUG]:               android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
[DEBUG]:       The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.
[DEBUG]:       
[DEBUG]:       > Task :compileDebugJavaWithJavac
[DEBUG]:       Note: Some input files use or override a deprecated API.
[DEBUG]:       Note: Recompile with -Xlint:deprecation for details.
[DEBUG]:       
[DEBUG]:       Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

After some investigation:
image
image

  • Play Console enforces targetSdkVersion ≥ 35; this requires AGP ≥ 8.6 and Gradle ≥ 8.13.
  • Gradle 8.14.3 satisfies the toolchain floor for AGP 8.11.0.
  • jcenter() is deprecated; switching to mavenCentral() removes a dead dependency source.

@misl6
Copy link
Member

misl6 commented Jul 14, 2025

I tried to build with a slightly different version (been more conservative), a few days ago, and also seemed fine to me.
I see the automated tests are failing, did you already tried to reproduce it locally?

UPDATE: I see the issue might be the current default target SDK, I guess we should just increase it. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants