Problem
Native modules can no longer be found on Android. This regression was introduced sometime in the last day -- look at the "Environment" field for more information.
Error Message
An alert dialog pops up with the following:
{quote}Uncaught Error: Requested module not found: bootstrap{quote}
Reproduction
Drop the following in an app.js, include a module and run with V8:
Ti.UI.createWindow({
backgroundColor: 'white'
}).open();
alert(require('ti.barcode'));
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<property name="ti.android.runtime">v8</property>
<sdk-version>1.9.0</sdk-version>
<deployment-targets>
<target device="mobileweb">false</target>
<target device="iphone">true</target>
<target device="ipad">true</target>
<target device="android">true</target>
<target device="blackberry">false</target>
</deployment-targets>
<id>com.dawson.playgroundmobile</id>
<name>play</name>
<version>1.0</version>
<publisher>dawson</publisher>
<url>http://www.appcelerator.com/</url>
<description>not specified</description>
<copyright>2011 by dawson</copyright>
<icon>appicon.png</icon>
<persistent-wifi>false</persistent-wifi>
<prerendered-icon>false</prerendered-icon>
<statusbar-style>default</statusbar-style>
<statusbar-hidden>false</statusbar-hidden>
<fullscreen>false</fullscreen>
<navbar-hidden>false</navbar-hidden>
<analytics>false</analytics>
<guid>caec7753-c202-40b0-be61-ff51c63054f9</guid>
<iphone>
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
<orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
<orientations device="ipad">
<orientation>Ti.UI.PORTRAIT</orientation>
<orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
</iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<modules>
<module>ti.barcode</module>
</modules>
</ti:app>
Error Log
{quote}
12-13 10:29:57.843: V/WindowManager(2450): Dsptch > Window{485d85c0 com.fede.launcher/com.fede.launcher.Launcher paused=false}
12-13 10:29:57.843: V/InputDevice(2450): ID[0]=0(0) Up(1=>0)
12-13 10:29:57.862: I/ActivityManager(2450): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.dawson.playgroundmobile/.PlayActivity bnds=[5,234][115,364] }
12-13 10:29:57.925: I/ActivityManager(2450): Start proc com.dawson.playgroundmobile for activity com.dawson.playgroundmobile/.PlayActivity: pid=22425 uid=10104 gids={1015, 3003}
12-13 10:29:57.999: I/TiApplication(22425): (main) [0,0] checkpoint, app created.
12-13 10:29:58.073: I/TiApplication(22425): (main) [76,76] Titanium 1.9.0 (2011/12/13 00:39 4dd4360)
12-13 10:29:58.147: D/dalvikvm(22425): GC_FOR_MALLOC freed 3246 objects / 326712 bytes in 35ms
12-13 10:29:58.198: D/dalvikvm(22425): Trying to load lib /data/data/com.dawson.playgroundmobile/lib/libstlport_shared.so 0x4823e638
12-13 10:29:58.198: I/TiApplication(22425): (main) [125,201] Titanium Javascript runtime: v8
12-13 10:29:58.210: D/dalvikvm(22425): Added shared lib /data/data/com.dawson.playgroundmobile/lib/libstlport_shared.so 0x4823e638
12-13 10:29:58.210: D/dalvikvm(22425): No JNI_OnLoad found in /data/data/com.dawson.playgroundmobile/lib/libstlport_shared.so 0x4823e638, skipping init
12-13 10:29:58.210: D/dalvikvm(22425): Trying to load lib /data/data/com.dawson.playgroundmobile/lib/libkroll-v8.so 0x4823e638
12-13 10:29:58.245: W/TiApplication(22425): (main) [47,248] activity stack is emtpy, unable to get current activity
12-13 10:29:58.245: I/TiRootActivity(22425): (main) [1,1] checkpoint, on root activity create, savedInstanceState: null
12-13 10:29:58.245: I/TiApplication(22425): (main) [0,1] Analytics have been disabled
12-13 10:29:58.249: W/TiApplication(22425): (main) [2,3] activity stack is emtpy, unable to get current activity
12-13 10:29:58.249: W/TiApplication(22425): (main) [0,3] activity stack is emtpy, unable to get current activity
12-13 10:29:58.249: W/TiApplication(22425): (main) [0,3] activity stack is emtpy, unable to get current activity
12-13 10:29:58.253: D/dalvikvm(22425): Added shared lib /data/data/com.dawson.playgroundmobile/lib/libkroll-v8.so 0x4823e638
12-13 10:29:58.663: E/TiApplication(22425): (KrollRuntimeThread) [416,419] APP PROXY: ti.modules.titanium.app.AppModule@4824b998
12-13 10:29:58.702: D/dalvikvm(22425): Trying to load lib /data/data/com.dawson.playgroundmobile/lib/libti.box.so 0x4823e638
12-13 10:29:58.702: D/dalvikvm(22425): Added shared lib /data/data/com.dawson.playgroundmobile/lib/libti.box.so 0x4823e638
12-13 10:29:58.702: D/dalvikvm(22425): No JNI_OnLoad found in /data/data/com.dawson.playgroundmobile/lib/libti.box.so 0x4823e638, skipping init
12-13 10:29:58.815: E/TiJSError(22425): (main) [151,570] ----- Titanium Javascript Runtime Error -----
12-13 10:29:58.815: E/TiJSError(22425): (main) [0,570] - In ti:/module.js:345,8
12-13 10:29:58.815: E/TiJSError(22425): (main) [0,570] - Message: Uncaught Error: Requested module not found: bootstrap
12-13 10:29:58.815: E/TiJSError(22425): (main) [0,570] - Source: throw new Error("Requested module not found: " + request);
12-13 10:29:58.854: E/V8Exception(22425): Exception occurred at ti:/module.js:345: Uncaught Error: Requested module not found: bootstrap
12-13 10:29:58.905: I/TiRootActivity(22425): (main) [0,0] checkpoint, on root activity resume. activity = com.dawson.playgroundmobile.PlayActivity@4824a770
12-13 10:29:59.120: I/ActivityManager(2450): Displayed activity com.dawson.playgroundmobile/.PlayActivity: 1199 ms (total 1199 ms)
{quote}
WORKS FOR ME with the latest from 1_8_x CI. version=1.8.0.1 module_apiversion=2 timestamp=12/14/11 09:39 githash=37fd911...
Works for me as well with the latest 1_8_x CI build.
Not seeing this anymore. Most have been taken care of elsewhere.