You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Dan Moore (JIRA)" <ji...@apache.org> on 2013/06/07 22:22:20 UTC

[jira] [Updated] (CB-3742) Android CLI 'serve' command fails with 'cannot call method update_project' of undefined

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

Dan Moore updated CB-3742:
--------------------------

          Environment: 
I'm running 64 bit CentOS6.4 in virtual box (host system is windows 7).

I'm using node 0.10.10, jdk 1.7, ant 1.8, the latest and greatest android sdk 22.0.1/version 17 of the build and platform tools).  cordova --version returns 2.8.13.

I have a colleague who is running macos 10.7.5 who received the same error for 'cordova serve ios'

  was:
I'm running 64 bit CentOS6.4 in virtual box (host system is windows 7).

I'm using node 0.10.10, jdk 1.7, ant 1.8, the latest and greatest android sdk 22.0.1/version 17 of the build and platform tools).

    Affects Version/s:     (was: 2.7.0)
                       2.8.0
              Summary: Android CLI 'serve' command fails with 'cannot call method update_project' of undefined  (was: Android CLI 'serve' command fails on CentOS 6 with 'cannot call method update_project' of undefined)

Changed some version information around, and added info about a mac issue.
                
> Android CLI 'serve' command fails with 'cannot call method update_project' of undefined
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-3742
>                 URL: https://issues.apache.org/jira/browse/CB-3742
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.8.0
>         Environment: I'm running 64 bit CentOS6.4 in virtual box (host system is windows 7).
> I'm using node 0.10.10, jdk 1.7, ant 1.8, the latest and greatest android sdk 22.0.1/version 17 of the build and platform tools).  cordova --version returns 2.8.13.
> I have a colleague who is running macos 10.7.5 who received the same error for 'cordova serve ios'
>            Reporter: Dan Moore
>            Assignee: Filip Maj
>
> I've successfully installed cordova-cli (thanks for this, by the way!) and can create a project and add the android platform.
> These all work:
> 'cordova create kewlapp kewlapp'
> 'cordova -d platform android'
> 'cordova build android'
> The emulator works (with a started 2.3.3 emulator):
> 'cordova emulate android' 
> However, when I run 'cordova serve android' I get this error:
> [TypeError: Cannot call method 'update_project' of undefined]
> 'cordova -d serve android' has the same output.
> From digging around in the node src, it seems that the parser created on line 125 of node_modules/cordova/src/serve.js is undefined for some reason.  I can't imagine why, though I did notice that node_modules/cordova/platforms.js has the android url pointing to cordova-ios.git.  Changing that to android.git didn't resolve the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira