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

Unsupported class file major version 64 #2

Open
thomas-xin opened this issue Jul 7, 2023 · 2 comments
Open

Unsupported class file major version 64 #2

thomas-xin opened this issue Jul 7, 2023 · 2 comments

Comments

@thomas-xin
Copy link

Hi,

I have attempted to build this repo on three different gradle versions: 7.2, 8.02 and 8.2; all display the following error:

Could not open settings generic class cache for settings file 'C:\Users\[censored directory]\tensorflow-lite-examples-android\settings.gradle' (C:\Users\Thomas\.gradle\caches\7.2\scripts\dzuajkbvb0k1mlebelr004mld).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64

Using the --debug or --stacktrace shows a lot of console spam, but a similar message on the error line:

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 64

Is this a problem with the framework or environment variables, or does it only work on a specific gradle version?
Thanks

@thomas-xin
Copy link
Author

Update: Downgrading Java SDK versions several times later I got a different error at Java 11.0.19:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\[censored directory]\tensorflow-lite-examples-android\example-model-personalization\build.gradle' line: 65

* What went wrong:
A problem occurred evaluating project ':example-model-personalization'.
> Cannot set the value of read-only property 'force' for DefaultExternalModuleDependency{group='org.tensorflow', name='tensorflow-lite-select-tf-ops', version='2.8.0', configuration='default'} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.

@dailystudio
Copy link
Owner

@thomas-xin I was using Java 1.8 to compile this project. But, it seems a bit old. I just have finished upgrade work my project DevBricksX-Android. This project heavily depends on that project. So, I am going to update this one to compile with Java 17.

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

No branches or pull requests

2 participants