android错误码定义,Cordova Android构建错误“无法读取未定义的属...

我有一个较旧的cordova项目,我正在更新.作为这个过程的一部分,我删除了android平台并对其进行了读取.

现在,当我尝试构建项目时,我收到以下错误:

C:\App>cordova build android --verbose

No scripts found for hook "before_build".

No scripts found for hook "before_prepare".

Checking config.xml and package.json for saved platforms that haven't been added to the project

Config.xml and package.json platforms are the same. No pkg.json modification.

Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.

PlatformApi successfully found for platform android

Checking config.xml for saved plugins that haven't been added to the project

Checking for any plugins added to the project that have not been installed in android platform

No differences found between plugins added to project and installed in android platform. Continuing...

Generating platform-specific config.xml from defaults for android at C:\App\platforms\android\res\xml\config.xml

Merging project's config.xml into platform-specific android config.xml

Found "merges/android" folder. Copying its contents into the android project.

Merging and updating files from [www, platforms\android\platform_www, merges\android] to platforms\android\assets\www

Wrote out android application name "App" to C:\App\platforms\android\res\values\strings.xml

android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.20): 10020

Wrote out Android package name "com.nge.app" to C:\App\platforms\android\src\com\nge\bca\MainActivity.java

Updating icons at platforms\android\res

Updating splash screens at platforms\android\res

This app does not have additional resource files defined

Prepared android project successfully

No scripts found for hook "after_prepare".

No scripts found for hook "before_compile".

ANDROID_HOME=C:\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_40

Error: Cannot read property 'length' of undefined

这在我删除平台之前确实有效,因此我猜测它是一个错误或配置文件发生了变化.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值