cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Piotrowski (JIRA)" <>
Subject [jira] [Commented] (CB-12976) Error: Cannot read property 'length' of undefined
Date Sun, 02 Jul 2017 19:53:03 GMT


Jan Piotrowski commented on CB-12976:

What is the exact command you execute to get this output?

> Error: Cannot read property 'length' of undefined
> -------------------------------------------------
>                 Key: CB-12976
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 7.0.1
>         Environment: Windows, android
>            Reporter: gurudatta m
>            Priority: Blocker
> Getting below error when doing a cordova build.
> Error: Cannot read property 'length' of undefined
> Details:
> Environment: cordova version 7.0.1
> java version: jdk1.8.0_60
> npm version: 3.10.10
> node version: v6.11.0
> Build output:
> 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
> 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
> No differences found between plugins added to project and installed in android platform.
> Generating platform-specific config.xml from defaults for android at C:\Users\username\Documents\mobileapp\MyApp\ionicapp\platforms\android\res\xml\config.xml
> Merging project's config.xml into platform-specific android config.xml
> Merging and updating files from [www, platforms\android\platform_www] to platforms\android\assets\www
> Wrote out android application name "MyApp" to C:\Users\username\Documents\mobileapp\MyApp\ionicapp\platforms\android\res\values\strings.xml
> android-versionCode not found in config.xml. Generating a code based on version in config.xml
(0.0.1): 1
> Wrote out Android package name "io.ionic.starter" to C:\Users\username\Documents\mobileapp\MyApp\ionicapp\platforms\android\src\io\ionic\starter\
> 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:\Users\username\AppData\Local\Android\sdk
> JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60
> Error: Cannot read property 'length' of undefined

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message