Cannot read property 'length' of undefined -v

Android Studio project detected
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_161
Cannot read property ‘length’ of undefined
[ERROR] An error occurred while running subprocess Cordova.

    cordova.cmd build android --device exited with exit code 1.

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

ionic info:
F:\T&E\BlankProject\BlankProject>ionic info


Ionic CLI : 6.0.0

Ionic Framework : @ionic/angular 4.11.10
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.2


Capacitor CLI : 1.5.0
@capacitor/core : 1.5.0


Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 4 other plugins)


cordova-res : 0.8.1
native-run : 0.3.0


Android SDK Tools : 26.1.1 (C:\Users\shubham.katkamwar\AppData\Local\Android\Sdk)
NodeJS : v10.14.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

getting this error while running on android devices.

properly install android studio with all environment variable like platform,
bin, ADB, android home SDK, android home, etc.

leads will be appreciated…!
Thank you in advance.

This may seem like a PITA, and feel free to ignore me, but one thing I would try is to see if the problem persists if you limit yourself to only alphanumeric characters in all components of all paths that node ever sees. I’m specifically concerned about that ‘&’.

Although this problem happened everywhere not for this project.
that means & is not a concern.
I think the problem with the environment but everything is updated…