生成错误:无法读取新项目中未定义的属性“长度”

时间:2019-08-30 11:23:49

标签: android cordova ionic-framework

我重新打开了旧的Ionic项目,当我尝试构建它时,出现“无法读取未定义的属性'length'的错误”错误。

注意:我最近更新了Android Studio

我尝试卸载并安装节点和离子

错误

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=H:\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.

离子信息:

Ionic:

   Ionic CLI          : 5.2.7
   Ionic Framework    : ionic-angular 3.9.5
   @ionic/app-scripts : 3.2.2

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic
-webview 4.1.1, (and 4 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.8

System:

   Android SDK Tools : 25.2.3 (H:\sdk)
   NodeJS            : v10.16.3 (J:\Program Files\nodejs\node.exe)
   npm               : 6.11.2
   OS                : Windows 8.1

运行 ionic cordova build android 时出现此错误。它不是建筑。任何帮助将不胜感激

0 个答案:

没有答案