When running an “android build” I am getting the following error:
FAILURE: Build failed with an exception.
* Where:
Build file ‘D:\myApp\platforms\android\build.gradle’ line: 20
* What went wrong:
A problem occurred evaluating root project ‘android’.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Build file ‘D:\myApp\platforms\android\build.gradle’ line: 20
* What went wrong:
A problem occurred evaluating root project ‘android’.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
This build was working not so long ago so not sure whats stopped it working. here are my versions:
ionic cli 1.7.6
cordova 7.0.1
JDK 1.8.0_92
I have searched through the forums and seen a few people with similar issues and followed their advice to get it working but I still cant get it to work.