Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8056] Android: Error when resolving modules in Linux

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-27T13:51:17.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0, Release 1.8.1, Release 1.8.2
Fix Version/sRelease 2.1.0, Sprint 2012-07
ComponentsAndroid
Labelscore
ReporterAlan Leard
AssigneeAllen Yeung
Created2012-03-16T11:53:56.000+0000
Updated2017-03-06T18:17:50.000+0000

Description

Error Message:
Location: [353,8]ti:/module.js
Message: Uncaught Error: Requested module not found: com.*.* (module could be anything)
Source: throw new Error("Requested module not found: " + request);
Description: Previously working with Titanium mobile Linux SDK 1.7.6, able to build the project, build the modules, use the modules, and run the application without any problems. Any mobile sdk greater than or equal to 1.8.0 receiving the above runtime error when launching the application. Tested Android Google API 13, Android Google API 15, and an android device running 4.0.2. Also ported all modules for use with 1.8.0.1 or greater following the information in this guide: https://wiki.appcelerator.org/display/guides/Android+Module+Porting+Guide+for+1.8.0.1. Every time the project build runs successfully without errors, just not able to run it. This project works fine on OS X, using the same code.

Attachments

FileDateSize
Error_Screen.png2012-03-20T15:15:58.000+000032744
test_project.zip2012-03-16T11:53:56.000+00003418198

Comments

  1. Allen Yeung 2012-03-21

    This problem relates to linux having a case-sensitive file system. I'm working on a solution now, but you can workaround this issue by doing either of the following: 1. Create your module project with only lower-case characters. Or 2. In your test project, go into (modules > android > com.dmarie.tts > 2.0) and rename TTS.jar to tts.jar
  2. Allen Yeung 2012-03-22

    A change was made to force module names to be lower-case during creation. To test the fix please try the following: 1. Create an android module with a name in caps (something like: titanium.py create --platform=android --type=module --name=TEST --id=com.test --android=/path/to/android/sdk 2. Go into the newly created module project, and build it by typing 'ant' 3. Go into the dist directory and verify that the name of the jar inside dist is all lower-case. (i.e. test.jar)
  3. Lee Morris 2017-03-06

    Closing ticket due to time passed.

JSON Source