【问题标题】:Titanium Module (Android) - "Requested module not found"Titanium 模块 (Android) - “未找到请求的模块”
【发布时间】:2014-01-16 13:49:47
【问题描述】:

我正在创建一个模块并将其添加到应用程序中

应用结构:

模块结构:

访问代码模块:

var module = require('ar.com.module');
    $.label.text = module.example();

错误:

运行应用程序的步骤:

  1. 在应用中包含模块
  2. 清理并构建应用程序
  3. 运行到设备

    • Titanium SDK 版本:3.2.0.GA
    • NDK 安卓:r8
    • Android 平台(模块):android-10

解决这个问题?

【问题讨论】:

  • 如果您得到了答案,您不应该将您的答案与问题本身一起添加。您可以将其添加为您自己的答案。检查stackoverflow.com/help/self-answer。将解决方案添加为您自己的答案并将其标记为已接受。

标签: javascript android titanium-mobile titanium-alloy titanium-modules


【解决方案1】:

解决方案:

要在设备中运行模块,必须在 tiapp.xml 中配置 deploy-type = "test" 并安装 gperf 添加到 Path。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-05
    相关资源
    最近更新 更多