Titanium Module(Android) - “未找到请求的模块”

时间:2014-01-16 13:49:48

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

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

申请结构: enter image description here

模块结构:

enter image description here

访问代码模块:

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

错误:

enter image description here

运行应用程序的步骤:

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

    • Titanium SDK版本:3.2.0.GA
    • NDK Android:r8
    • Android plataform(模块):android-10
  4. 解决这个问题?

1 个答案:

答案 0 :(得分:0)

解决方案:

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

相关问题