Error on android build (exit code 1)

I simply want to run the ionic cordova build android without any error

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.
        
[ERROR] An error occurred while running cordova build android (exit code 1):
        
        ANDROID_HOME=/usr/lib/android-sdk
        JAVA_HOME=/usr/lib/jvm/java-8-oracle
        Error: Could not find an installed version of Gradle either in Android Studio,
        or on your system to install the gradle wrapper. Please include gradle 
        in your path, or install Android Studio

Have you installed android SDK with emulator softwhare?