[
https://issues.apache.org/jira/browse/CB-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678389#comment-13678389
]
Filip Maj edited comment on CB-3742 at 6/7/13 8:23 PM:
-------------------------------------------------------
When you run {{cordova -v}}, what version does it say it is running?
EDIT: Hah it seems you are telepathic and pre-emptively knew what I was going
to ask :)
was (Author: filmaj):
When you run {{cordova -v}}, what version does it say it is running?
> 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