启动应用时,Titanium缺少Google Analytics

时间:2015-06-03 14:41:32

标签: android node.js google-analytics titanium

我正在使用Titanium 3.5.1完成由同事启动的应用程序的开发。该应用程序适用于他,并在Android模拟器中运行就好了。另外一位同事在他的Mac上安装了Titanium 3.5.1并且启动了应用程序,没有任何变化。

对于我使用相同Titanium的Ubuntu 14.04,应用程序不会在模拟器中启动。我一直收到错误的Google Analytics插件错误。我知道它不是Linux的东西,因为第一位同事也在使用Ubuntu来开发应用程序。所以它在那里工作得很好。

我正在使用最新安装的NodeJS和Oracle JDK。

$ node -v
v0.12.4
$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
OpenJDK Server VM (build 24.79-b02, mixed mode)
$ ti --version
4.0.1

$ ti sdk
Titanium Command-Line Interface, CLI version 4.0.1, Titanium SDK version 3.5.1.GA
Copyright (c) 2012-2015, Appcelerator, Inc.  All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/

SDK Install Locations:
   /home/land/.titanium [default]

Installed SDKs:
   3.5.1.GA [selected]  /home/land/.titanium/mobilesdk/linux/3.5.1.GA

这是我尝试模拟时遇到的错误:

[ERROR] :  TiExceptionHandler: (main) [1722,1722] ----- Titanium Javascript Runtime Error -----
[ERROR] :  TiExceptionHandler: (main) [1,1723] - In ti:/module.js:280,9
[ERROR] :  TiExceptionHandler: (main) [1,1724] - Message: Uncaught Error: Requested module not found: analytics.google
[ERROR] :  TiExceptionHandler: (main) [0,1724] - Source:         throw new Error("Requested module not found: " + request);
[ERROR] :  V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: analytics.google

我知道Google Analytics Module就在那里:

enter image description here enter image description here enter image description here enter image description here

所有这些都说明了完全相同的代码运行给其他两个同事而没有对代码进行单一更改。我也跑了#34; Clean"在编译之前的项目。结果相同。

1 个答案:

答案 0 :(得分:1)

在基于Github的开发人员问题中找到答案。它似乎就像模块的JAR的文件名一样简单。其中一封信是大写的。由于Linux使用区分大小写的文件名,Linux无法找到它。在检查器中重命名文件可以解决这个问题并为我修复它:

enter image description here

https://github.com/Sitata/titanium-google-analytics/issues/13#issuecomment-70508249

相关问题