Ionic not make apk

cordova.cmd build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\hp\AppData\Local\Android\Sdk (recommended setting)
ANDROID_HOME=C:\Users\hp\AppData\Local\Android\Sdk (DEPRECATED)
Cannot read property ‘length’ of undefined
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

any one help me plz to solve this issue whats wrong ??

Check JDK on your machine or update the path on your machine enviroment, you can check on stackoverflow how to do that.

The erro is telling you…

Is a Cannot read property ‘length’ of undefined

In your code have one variable that is in error!