[TIMOB-8056] Android: Error when resolving modules in Linux
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-27T13:51:17.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0, Release 1.8.1, Release 1.8.2 |
Fix Version/s | Release 2.1.0, Sprint 2012-07 |
Components | Android |
Labels | core |
Reporter | Alan Leard |
Assignee | Allen Yeung |
Created | 2012-03-16T11:53:56.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
Error_Screen.png | 2012-03-20T15:15:58.000+0000 | 32744 |
test_project.zip | 2012-03-16T11:53:56.000+0000 | 3418198 |
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
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)
Closing ticket due to time passed.