nativescript-plugin-firebase icon indicating copy to clipboard operation
nativescript-plugin-firebase copied to clipboard

General error during semantic analysis: Unsupported class file major version 61

Open emog opened this issue 2 years ago • 3 comments

Dependencies:

"@nativescript/core": "~8.1.3", "@nativescript/firebase": "^11.1.3", "@nativescript/android": "8.1.1", "@nativescript/ios": "~8.1.0",

Error:

  • Where: Settings file '/Users/egeorgiev/AppDevelopment/vnmarketresearch/vnmarket/platforms/tempPlugin/firebase/settings.gradle'

  • What went wrong: Could not compile settings file '/Users/egeorgiev/AppDevelopment/vnmarketresearch/vnmarket/platforms/tempPlugin/firebase/settings.gradle'.

startup failed: General error during semantic analysis: Unsupported class file major version 61

java.lang.IllegalArgumentException: Unsupported class file major version 61 at groovyjarjarasm.asm.ClassReader.(ClassReader.java:196) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:177)

emog avatar Oct 05 '21 19:10 emog

Same here after reinstalled linux

csimpi avatar Oct 07 '21 19:10 csimpi

UPDATE:

@emog You need to downgrade your JDK version.

Install JDK 8 sudo apt install openjdk-8-jdk

Change the default version of JDK selecting from the appearing list: sudo update-alternatives --config java

csimpi avatar Oct 07 '21 21:10 csimpi

@csimpi Thank you. I'm using macOS but I will downgrade the jdk version and will try again.

emog avatar Oct 07 '21 21:10 emog