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

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65 #41193

Closed
mayurmudoi opened this issue Oct 25, 2023 · 7 comments
Labels
Resolution: Answered When the issue is resolved with a simple answer

Comments

@mayurmudoi
Copy link

Description

I have been facing this issue for quite a few days, Earlier I was getting the same BUG with version 64. So,

Updated To
JAVA: java version "21.0.1" 2023-10-17 LTS
GRADLE: Gradle 8.4
NODE: v20.9.0

Now facing this issue.

React Native Version

0.72.6

Output of npx react-native info

System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
Memory: 1.35 GB / 7.84 GB
Binaries:
Node:
version: 20.9.0
path: D:\Tools\Node\nodejs\node.EXE
Yarn:
version: 1.22.19
path: ~\AppData\Roaming\npm\yarn.CMD
npm:
version: 10.0.0
path: D:\Tools\Node\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-223.8836.35.2231.10671973
Visual Studio:
- 17.7.34031.279 (Visual Studio Community 2022)
Languages:
Java: 21.0.1
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.6
wanted: 0.72.6
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

Steps to reproduce

Facing this issue after creating a new react-native-applications.

Snack, screenshot, or link to a repository

Screenshot (49)

@github-actions github-actions bot added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Oct 25, 2023
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@cortinico
Copy link
Contributor

JAVA: java version "21.0.1" 2023-10-17 LTS

Java 21 is currently unsupported. The recommendation is to use JDK 11

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Triage 🔍 Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Oct 26, 2023
@m1daz
Copy link

m1daz commented Jan 8, 2024

I need an explanation.

Tried this
image
Tried this
image

Tried JDK 17, Java 8, JDK 21

Could not open cp_proj generic class cache for build file '****' (/Users/administrator/.gradle/caches/8.0.1/scripts/1ygqc4rlllvkp18ic30fv7mb1).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65

@andvalsol
Copy link

I'm having the same issue and I'm using corretto-11

@pyprince
Copy link

Me too. If someone resolved this issue, please let me know.

@shriya-begalileo
Copy link

I am using grade 8.3 and jdk version 20 which is compatible stilll facing same issue

@michaelemercer
Copy link

Hello, I don't know if this is the issue, but I'm having the same issue. But for me the directory is /.gradle/caches/8.1.1.

Now I'm assuming 8.1.1 would be the gradle version??? I'm using 8.7 with java 21.

Could this be the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests

7 participants