1
votes

I am having troubles using a module I have added to Titanium. I followed the official directions to install a module (more specifically this module: https://github.com/appcelerator/titanium_modules/tree/master/udp/mobile/android):

  • I have installed the ti.udp-android-2.1.2.zip file via help>Install Mobile Module
  • Then I added the ti.udp module to the tiapp.xml (since it was directly found and could be selected from the list, I assume the install of the module was successful).
  • I load the module with

var UDP = require('ti.udp');

Every time I start the application, I get the error:

Uncaught Error: Requested module not found: ti.udp

update Image of the tiapp.xml:

2
Did you ever have any luck getting this to work on android Consec i am also having issues getting it to work? thanks - user1503606
I have never been able to make titanium find the globally installed modules. However, when I tried to install it only for one project (as described here: docs.appcelerator.com/titanium/2.0/#!/guide/…), titanium did find the module. - JasperTack

2 Answers

1
votes

Please go to tiapp.xml and see whether the module is being shown there.I don't think that your module added in tiapp.xml

Thanks

1
votes

Your modules should be installed under %User%/AppData/Roaming/Titanium/modules

You can also verify what is your titanium sdk path in TitaniumStudio Window->Preference->Platform

I suspect that the tiapp.xml gets the modules from the Titanium Path, but the build will look for it in the User's path. That's why you do see it in the editor, but can't build