If I want build I am getting this error


#1

E:\dashtask>ionic build android --prod --release
Running command: E:\node.exe E:\dashtask\hooks\after_prepare\010_add_platform_class.js E:\dashtask

add to body class: platform-android

ANDROID_HOME=C:\Users\admin\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk

Error: Cannot read property ‘length’ of undefined


#2

Did you read through the many topics that pop up when you search for the error message “Error: Cannot read property ‘length’ of undefined” here in the forum?