2015-03-02 49 views
1

我尝试使用谷歌地图模块,但得到的错误信息:钛找不到模块

脚本错误找不到模块:用于建筑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'w orks很好,但'com.moshemarciano.googlemaps'的要求会导致错误。

任何人都知道我可能会做错什么?

+0

参考,也许你可以按照[这个答案](http://stackoverflow.com/a/27840075/3419997)和使用地图从[这里]模块( http://gitt.io/component/ti.map) – turtle 2015-03-03 06:25:53

回答

1

检查tiapp.xml包含com.moshemarciano.googlemaps

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

感谢Funtik。有这样的参考,但事实证明它应该是谷歌地图而不是谷歌地图!所以现在一切都很好 – 2015-03-10 11:48:08