Skip to content
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

[Build] failed to build android CHIP Tool #29947

Closed
BurievSardor opened this issue Oct 24, 2023 · 3 comments
Closed

[Build] failed to build android CHIP Tool #29947

BurievSardor opened this issue Oct 24, 2023 · 3 comments

Comments

@BurievSardor
Copy link
Contributor

BurievSardor commented Oct 24, 2023

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
Copy link

Hi,Have you solved this problem?

@Kartikgupta1502
Copy link

Hey, Was this resolved?

@yunhanw-google
Copy link
Contributor

we have upgraded the android build with java 17 and gradle 7.3.3, and kotlin 2.0.
#33837, this issue should be resolved, feel free to reopen a new case if this is still problematic. thanks

@github-project-automation github-project-automation bot moved this from Todo to Done in [Platform] Android Feb 3, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in [Build] Build Issues Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Status: Done
Development

No branches or pull requests

5 participants