You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Karen Tran (JIRA)" <ji...@apache.org> on 2016/03/25 14:19:25 UTC

[jira] [Updated] (CB-10940) Can't add Android platform from path

     [ https://issues.apache.org/jira/browse/CB-10940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karen Tran updated CB-10940:
----------------------------
    Description: 
Ran into this issue when trying to create mobile-spec. I cannot add the android platform from a path. This only happens on master. If I switch cordova-android repo to 5.1.x branch, this issue doesn't happen. 

Error from Mac:
{noformat}
myComputer$ cordova platform add ../cordova-android -dd
Executing "before_platform_add"  hook for all plugins.
Adding android project...
PlatformApi successfully found for platform android

/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212
    if(message.toUpperCase().indexOf('ERROR:') !== 0) {
               ^
TypeError: Cannot call method 'toUpperCase' of undefined
    at formatError (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212:16)
    at CordovaLogger.log (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:93:19)
    at process.<anonymous> (/Users/myComputer/cordova_apache_master/cordova-cli/src/cli.js:136:16)
    at process.EventEmitter.emit (events.js:95:17)
    at process._fatalException (node.js:272:26){noformat}

Error from Windows:
{noformat}
Error: RangeError: Maximum call stack size exceeded
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30)
    at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
va-lib\cordova-common\src\events.js:61:30) {noformat}

  was:
Ran into this issue when trying to create mobile-spec. I cannot add the android platform from a path. This only happens on master. If I switch cordova-android repo to 5.1.x branch, this issue doesn't happen. 

Error from Mac (on Windows, the error is different and isn't very helpful):
{noformat}
myComputer$ cordova platform add ../cordova-android -dd
Executing "before_platform_add"  hook for all plugins.
Adding android project...
PlatformApi successfully found for platform android

/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212
    if(message.toUpperCase().indexOf('ERROR:') !== 0) {
               ^
TypeError: Cannot call method 'toUpperCase' of undefined
    at formatError (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212:16)
    at CordovaLogger.log (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:93:19)
    at process.<anonymous> (/Users/myComputer/cordova_apache_master/cordova-cli/src/cli.js:136:16)
    at process.EventEmitter.emit (events.js:95:17)
    at process._fatalException (node.js:272:26){noformat}


> Can't add Android platform from path
> ------------------------------------
>
>                 Key: CB-10940
>                 URL: https://issues.apache.org/jira/browse/CB-10940
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>         Environment: Tried on Windows and Mac
>            Reporter: Karen Tran
>              Labels: android, platform
>             Fix For: Master
>
>
> Ran into this issue when trying to create mobile-spec. I cannot add the android platform from a path. This only happens on master. If I switch cordova-android repo to 5.1.x branch, this issue doesn't happen. 
> Error from Mac:
> {noformat}
> myComputer$ cordova platform add ../cordova-android -dd
> Executing "before_platform_add"  hook for all plugins.
> Adding android project...
> PlatformApi successfully found for platform android
> /Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212
>     if(message.toUpperCase().indexOf('ERROR:') !== 0) {
>                ^
> TypeError: Cannot call method 'toUpperCase' of undefined
>     at formatError (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212:16)
>     at CordovaLogger.log (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:93:19)
>     at process.<anonymous> (/Users/myComputer/cordova_apache_master/cordova-cli/src/cli.js:136:16)
>     at process.EventEmitter.emit (events.js:95:17)
>     at process._fatalException (node.js:272:26){noformat}
> Error from Windows:
> {noformat}
> Error: RangeError: Maximum call stack size exceeded
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30)
>     at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo
> va-lib\cordova-common\src\events.js:61:30) {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org