I am developing an Ionic 2 app on MacOS Sierra.
I’ve completed in-browser testing but am getting an error when executing ‘ionic build android --release --prod’:
FAILURE: Build failed with an exception.
Build file ‘/Users/davidebbitt/Desktop/ionic2/cholTracker2/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
The reference line 20 in the gradle file is:
apply plugin: ‘com.android.application’
I am longing to get this app into the Play store, so any help will be greatly appreciated.