Skip to content

Commit a83d7ce

Browse files
committed
build: android: bump gradle version to work with Java 21
When building on debian 12, we were using Java 17. On debian 13, there is Java 21. Gradle was giving build errors with new Java: ``` Could not compile build file '/home/user/wspace/electrum/.buildozer_qml/android/platform/build-arm64-v8a/dists/Electrum/build.gradle'. > startup failed: General error during conversion: Unsupported class file major version 65 java.lang.IllegalArgumentException: Unsupported class file major version 65 ``` see https://docs.gradle.org/current/userguide/compatibility.html for our p4a fork, this cherry-picks: - kivy/python-for-android@17bf532 - kivy/python-for-android#3172 kivy/python-for-android@a8f2ca1
1 parent 35ca9b4 commit a83d7ce

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

contrib/android/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ RUN cd /opt \
219219
&& /opt/venv/bin/python3 -m pip install --no-build-isolation --no-dependencies -e .
220220

221221
# install python-for-android
222-
ENV P4A_CHECKOUT_COMMIT="a01269f7799587ad74ee40e0b642d917b8db7d4e"
222+
ENV P4A_CHECKOUT_COMMIT="846a1094874aeb64b623fa746222a41851245271"
223223
# ^ from branch electrum_20251211 (note: careful with force-pushing! see #8162)
224+
# FIXME xxxxx tmp git repo
224225
RUN cd /opt \
225-
&& git clone https://github.com/spesmilo/python-for-android \
226+
&& git clone https://github.com/sombernight/python-for-android \
226227
&& cd python-for-android \
227228
&& git checkout "${P4A_CHECKOUT_COMMIT}^{commit}" \
228229
&& /opt/venv/bin/python3 -m pip install --no-build-isolation --no-dependencies -e .

0 commit comments

Comments
 (0)