project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.39k stars 1.98k forks source link

[Build] failed to build android CHIP Tool #29947

Open BurievSardor opened 11 months ago

BurievSardor commented 11 months ago

Build issue(s)

I installed the latest command line tools I installed Java 11

When I run the following the command:

./scripts/build/build_examples.py --target android-arm64-chip-tool build

I got the following error:


Error: LinkageError occurred while loading main class com.android.sdklib.tool.sdkmanager.SdkManagerCli 2023-10-19 18:06:03 WARNING java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0


sdkmanager requires Java 17, but script uses gradle 7.1.1 which does not support java 17. How to solve this issue?

Platform

No response

Anything else?

No response

sanlingye commented 9 months ago

Hi,Have you solved this problem?

Kartikgupta1502 commented 1 month ago

Hey, Was this resolved?