Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18044] Android: tiapp.xml of generated project has two modules tag

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-12-05T22:28:49.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsAndroid, Tooling
LabelsTCSupportTriage, qe-4.0.0
ReporterJong Eun Lee
AssigneePraveen Innamuri
Created2014-08-10T00:17:30.000+0000
Updated2015-03-04T20:56:08.000+0000

Description

Description

tiapp.xml of generated project by '3.3.0.GA/module/builder.py' hans two modules tag.

Reproducing steps

1. create Android Module. 2. run 'ant run' (app install to your device) 3. you got a runtime error "Requested module not found" 4. go generated example project dir. (You can find a path from 'ant run' log. it is something like this : /private/var/folders/cd/slc2125j7xz_kt9292dkp2v80000gn/T/mHgoLa_ti/test/) 5. open tiapp.xml. you can see it has a two modules tag. (attached) I will make a Pull Request.

Attachments

FileDateSize
tiapp.xml2014-08-10T00:17:30.000+00001612

Comments

  1. Jong Eun Lee 2014-08-10

    PR : https://github.com/appcelerator/titanium_mobile/pull/5961
  2. Motiur Rahman 2014-08-24

    Hello, We have tested this issue. Default Android module, which is created by Appcelerator studio causes of app crash. But two modules tag doesn’t appear.

    Testing Environment:

    Titanium SDK: 3.3.0.GA, 3.2.3.GA Titanium CLI: 3.3.0, Android SDK: 4.2.2,4.4.2 OS X Version: 10.9.4, Appcelerator Studio: 3.3.0

    Steps to Reproduce the Issue:

    1. Create an Android Module. 2. Create a project and use that module. 3. Paste the module example code in app.js file. 3. Run this code with the testing environment.

    App Log

       [ERROR] :  dalvikvm: dlopen("/data/app-lib/com.bd.testingMo-1/libcom.bd.testmodule.so") failed: dlopen failed: library "/system/lib/libhoudini.so" not found
       [ERROR] :  TiApplication: (KrollRuntimeThread) [63,63] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib/libhoudini.so" not found; Titanium 3.3.0,2014/07/11 12:36,787cd39
       [ERROR] :  TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib/libhoudini.so" not found
       [ERROR] :  TiApplication: 	at java.lang.Runtime.loadLibrary(Runtime.java:364)
       [ERROR] :  TiApplication: 	at java.lang.System.loadLibrary(System.java:526)
       [ERROR] :  TiApplication: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:114)
       [ERROR] :  TiApplication: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:81)
       [ERROR] :  TiApplication: 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:175)
       [ERROR] :  TiApplication: 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
       
    Thanks.
  3. Ingo Muschenetz 2014-11-17

    I am able to reproduce this issue: SDK 3.4.0 1. ti create (create a module project) 2. cd into module/android 3. ant run Find generated project folder. Notice:
       <?xml version="1.0" encoding="UTF-8"?>
       <ti:app xmlns:ti="http://ti.appcelerator.org">
       	<id>com.test</id>
       	<name>com.test</name>
       	<version>1.0</version>
       	<publisher>not specified</publisher>
       	<url>not specified</url>
       	<description>not specified</description>
       	<copyright>not specified</copyright>
       	<icon>appicon.png</icon>
       	<fullscreen>false</fullscreen>
       	<navbar-hidden>false</navbar-hidden>
       	<analytics>true</analytics>
       	<guid>946b1374-6293-41a4-ba18-8e22e0233546</guid>
       <modules>
       <module version="1.0.0">com.test</module>
       </modules>
       
       	<property name="ti.ui.defaultunit">dp</property>
       	<ios>
       		<plist>
       			<dict>
       				<key>UISupportedInterfaceOrientations~iphone</key>
       				<array>
       					<string>UIInterfaceOrientationPortrait</string>
       				</array>
       				<key>UISupportedInterfaceOrientations~ipad</key>
       				<array>
       					<string>UIInterfaceOrientationPortrait</string>
       					<string>UIInterfaceOrientationPortraitUpsideDown</string>
       					<string>UIInterfaceOrientationLandscapeLeft</string>
       					<string>UIInterfaceOrientationLandscapeRight</string>
       				</array>
       				<key>UIRequiresPersistentWiFi</key>
       				<false/>
       				<key>UIPrerenderedIcon</key>
       				<false/>
       				<key>UIStatusBarHidden</key>
       				<false/>
       				<key>UIStatusBarStyle</key>
       				<string>UIStatusBarStyleDefault</string>
       			</dict>
       		</plist>
       	</ios>
       	<android xmlns:android="http://schemas.android.com/apk/res/android">
       	</android>
       	<mobileweb>
       		<precache>
       		</precache>
       		<splash>
       			<enabled>true</enabled>
       			<inline-css-images>true</inline-css-images>
       		</splash>
       		<theme>default</theme>
       	</mobileweb>
       	<modules>
       	</modules>
       </ti:app>
       
  4. Eric Wieber 2015-03-04

    Verified fixed, using: Titanium SDK 4.0.0.v20150303161012 Studio 4.0.0.201502171827 CLI 3.4.2-rc4

JSON Source