【问题标题】:Titanium can't find module钛找不到模块
【发布时间】:2015-03-02 17:51:30
【问题描述】:

我正在尝试使用谷歌地图模块,但收到错误消息:

脚本错误找不到模块:com.moshemarciano.googlemaps 架构:i386

我使用 Titanium Studio 安装了 com.moshemarciano.googlemaps 模块,它看起来已经正确安装在 ~/Library/Application Support/Titanium/iPhone 以及其他一些我可以正常工作的模块。

在我的 tiapp.xml 我有:

<module platform="iphone">com.moshemarciano.googlemaps</module>

在我的 app.js 中有:

fb = require('facebook');
googleMapsAPI = require('com.moshemarciano.googlemaps');

“facebook”的要求可以正常工作,但“com.moshemarciano.googlemaps”的要求会导致错误。

有人知道我做错了什么吗?

【问题讨论】:

标签: titanium titanium-mobile titanium-alloy


【解决方案1】:

检查tiapp.xml 是否包含对com.moshemarciano.googlemaps 的引用

<modules>
    ....
    <module platform="android">com.moshemarciano.googlemaps</module>
    ....
</modules>

【讨论】:

  • 感谢 Funtik。有这样的参考,但事实证明它应该是 googleMaps 而不是 googlemaps!现在一切都很好
猜你喜欢
  • 1970-01-01
  • 2016-04-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-12-15
  • 2014-01-19
  • 1970-01-01
  • 2018-02-21
相关资源
最近更新 更多