Titanium Javascript运行时错误

时间:2016-10-29 20:09:20

标签: android titanium appcelerator-mobile

[INFO]  Encrypting JavaScript files: C:\ProgramData\Titanium\mobilesdk\win32\5.5.1.GA ...
2016-10-29T17:37:39.849Z | ERROR  | An uncaught exception was thrown!
Cannot read property 'proxyAttrs' of undefined
2016-10-29T17:37:39.864Z | ERROR  | Cannot read property 'proxyAttrs' of undefined

尝试在Win 10上通过Appcelerator Studio构建一个Android应用程序。它在尝试加密JS文件后停止构建。当试图通过Appcelerator Studio将其构建到真实设备时 - 它不会记录错误,而只是停止构建。尝试通过Titanium CLI构建到Android模拟器后能够看到错误消息。

UPD:

设法通过停用google.analytics功能并删除google.analytics模块来摆脱此错误。

现在虽然我收到了另一个错误。并且它说错误在文件中,我甚至没有创建,也无法在我的项目文件夹中找到它。

[ERROR] TiViewProxy: Invalid value, expected type Object.
[ERROR] D/[BNRAppListMgrReceiver]( 5902): android.intent.action.PACKAGE_ADDED : nl.nle.annainzicht
[ERROR] TiExceptionHandler: (main) [803,803] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,803] - In ti:/view.js:22,8
[ERROR] TiExceptionHandler: (main) [0,803] - Message: Uncaught Error: Invalid value, expected type Object.
[ERROR] TiExceptionHandler: (main) [0,803] - Source:            _add.call(this, child);

我的系统设置为:

Operating System
  Name                        = Microsoft Windows 10 Pro
  Version                     = 10.0.14393
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 7.9GB

Node.js
  Node.js Version             = 4.4.7
  npm Version                 = 2.15.8

Titanium CLI
  CLI Version                 = 5.0.10
  node-appc Version           = 0.2.31

Titanium SDKs
  5.5.1.GA
    Version                   = 5.5.1
    Install Location          = C:\ProgramData\Titanium\mobilesdk\win32\5.5.1.GA
    Platforms                 = android, mobileweb, windows
    git Hash                  = b18727f
    git Timestamp             = 09/27/16 05:38
    node-appc Version         = 0.2.36

1 个答案:

答案 0 :(得分:0)

您可能会调用一个不会返回任何内容的函数 但是观点预计会有所增加。 我自己也遇到了麻烦