Android Studio project detected
ANDROID_HOME=C:\Users\shubham.katkamwar\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_161
studio
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:
Ionic CLI : 6.0.0
(C:\Users\shubham.katkamwar\AppData\Roaming\npm\node_modules@ionic\cli)
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:
Capacitor CLI : 1.5.0
@capacitor/core : 1.5.0
Cordova:
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)
Utility:
cordova-res : 0.8.1
native-run : 0.3.0
System:
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.
also https://developer.android.com/studio/install
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.