Ionic cordova run android failed on windows


#1

ANDROID_HOME=C:\androidsdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0
Subproject Path: CordovaLib
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details

FAILURE:
BUILD FAILED

Total time: 57.141 secs
Build failed with an exception.

  • Where:
    Build file ‘C:\Users\User\Desktop\doc\blank\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
I need help please