7
3
Fork
You've already forked android
4

unable to build on Debian 13 #48

Open
opened 2025年11月25日 12:53:28 +01:00 by fkooman · 1 comment

It seems because Debian 13 comes with Java 21:

$ javac --version
javac 21.0.9

The builder fails:

> Task :ics-openvpn-main:compileUiOvpn2ReleaseKotlin FAILED 
[Incubating] Problems report is available at: file:///home/debian/Projects/eduvpn-android-3.5.1/build/reports/problems/problems-report.html 
 
FAILURE: Build failed with an exception. 
 
* What went wrong: 
Execution failed for task ':ics-openvpn-main:compileUiOvpn2ReleaseKotlin'. 
> Inconsistent JVM-target compatibility detected for tasks 'compileUiOvpn2ReleaseJavaWithJavac' (17) and 'compileUiOvpn2ReleaseKotlin' (21). 
 
 Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain 
 Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation 

Is there anything we can do? Building on Debian 12 works fine:

$ javac --version
javac 17.0.17
It seems because Debian 13 comes with Java 21: ```bash $ javac --version javac 21.0.9 ``` The builder fails: ``` > Task :ics-openvpn-main:compileUiOvpn2ReleaseKotlin FAILED [Incubating] Problems report is available at: file:///home/debian/Projects/eduvpn-android-3.5.1/build/reports/problems/problems-report.html FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':ics-openvpn-main:compileUiOvpn2ReleaseKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileUiOvpn2ReleaseJavaWithJavac' (17) and 'compileUiOvpn2ReleaseKotlin' (21). Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation ``` Is there anything we can do? Building on Debian 12 works fine: ```bash $ javac --version javac 17.0.17 ```
Author
Owner
Copy link

Debian 12 will be EOL on 2026年06月10日, so ideally we'll have a solution before then. No rush.

Debian 12 will be [EOL](https://wiki.debian.org/DebianReleases) on 2026年06月10日, so ideally we'll have a solution before then. No rush.
Sign in to join this conversation.
No Branch/Tag specified
master
feature/bugfixes
feature/tile_service
feature/mte_crash
feature/update-ics
feature/proxyguard_via_wireguard
feature/include_list
feature/threading_fix
3.5.2
3.5.1
3.5.0
3.4.0
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.99.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.3.2
1.3.1
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.0.1
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/android#48
Reference in a new issue
eduVPN/android
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?