{ "id": "168900", "key": "AC-5075", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-08-18T21:52:06.000+0000", "created": "2017-07-10T12:38:34.000+0000", "labels": [ "andoid", "cli", "module", "module_CLI", "native" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-18T21:52:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "I'm trying to make a module that include a library with its own layout places under {{platform/android/res}} folder.\r\nInside the module manifest I also specified {{respackage com.libray.included}}.\r\n\r\nI build the module using {{ti build -p android --build-only}}, unpack it in my sample app, run the app and when I call the module I get:\r\n\r\n\r\n{code:java}\r\n[WARN] W/System.err: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/library/included/R$layout;\r\n[WARN] W/System.err: at com.library.included.CustomView.(CustomView.java:131)\r\n[WARN] W/System.err: at com.library.included.CustomView.make(CustomView.java:138)\r\n[WARN] W/System.err: at av.snackbar.SnackbarProxy.make(CustomProxy.java:60)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)\r\n[WARN] W/System.err: at ti.modules.titanium.TitaniumModule$Timer.run(TitaniumModule.java:147)\r\n[WARN] W/System.err: at android.os.Handler.handleCallback(Handler.java:739)\r\n[WARN] W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] W/System.err: at android.os.Looper.loop(Looper.java:148)\r\n[WARN] W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n[WARN] W/System.err: at java.lang.reflect.Method.invoke(Native Method)\r\n[WARN] W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n[WARN] W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n{code}\r\n\r\n\r\nIf you try to build the module using {{ant}}, install the module inside the app and running it the module will work as well.", "attachment": [], "flagged": false, "summary": "Android native module build script doesn't correctly generate R.java for included libraries", "creator": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "environment": "macOS Sierra\r\nAndroid 6\r\nCLI 6.2.2\r\nTi SDK 6.6.1.GA", "comment": { "comments": [ { "id": "425294", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi,\r\nThanks for reaching out. Can you be more specific about your issue? Do you have a third-party JAR or AAR in your module? If yes, add the JAR file to the module's lib directory.\r\nPlease take a look:\r\n[Add a Third-Party library |http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Project-section-src-43289002_AndroidModuleProject-AddaThird-PartyJAR]", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2017-08-02T17:50:33.000+0000", "updated": "2017-08-02T17:50:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }