'how to run cordova project in manjaro

I have problem using cordova, I new in cordova, well, my problem is whe I try run the project is show me an error. like this:

FAILURE: Build failed with an exception.

* Where:
 Settings file 
 '/home/ngel/Projects/cordova_lab/novaCrud/platforms/android/settings.gradle'

 * What went wrong:
 Could not compile settings file 
 '/home/ngel/Projects/cordova_lab/novaCrud/platforms/android/settings.gradle'.
 > startup failed:
 General error during semantic analysis: Unsupported class file major version 61

 java.lang.IllegalArgumentException: Unsupported class file major version 61

first a create project like this:

cordova create testprj

then add platform

cordova platform add android

and finally

cordova run android

and show me the error above.

my gradle is 6.9.1, OS manjaro

please help me.

thanks for your advice.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source