Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

742
Vistas
Unsupported class file major version 61 Cordova Mac

So im on mac (Big sur), and i wish to build a Cordova app to android. I have java 17 installed, and gradle 7.1.1.

Im able to build the project on another windows computer just fine. (though i cannot rely on that for personal reasons)

But every time i try to build on mac, im confronted with following error:

FAILURE: Build failed with an exception.

* Where:
Settings file '/Users/me/app/cordovaProject/platforms/android/settings.gradle'

* What went wrong:
Could not compile settings file '/Users/me/app/cordovaProject/platforms/android/settings.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 61

(There is more to the error but its long. Will provide if needed.)

10 months ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Answered by @JustInCoding, the solution for me was to install JDK 16, and then add org.gradle.java.home=your Jdk 16 path here in the gradle.properties file of my project.

10 months ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.