{ "id": "172104", "key": "TIMOB-26329", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20220", "name": "Release 7.3.1", "archived": false, "released": true, "releaseDate": "2018-08-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-23T23:48:57.000+0000", "created": "2018-08-20T22:16:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "hyperloop" ], "versions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-24T09:30:27.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "Hi, since 7.3.0 this example does not work anymore. https://github.com/appcelerator/hyperloop-examples/blob/master/app/controllers/android/nativelayout.js\r\n\t\r\nAnd if I try to create a CoordinatorLayout directly in hyperloop or in a java module I get this exception:\r\n\r\n{code}\r\n(main) [222,5668] Exception during instantiation of class 'android.support.design.widget.CoordinatorLayout'\r\njava.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/coreui/R$attr;\r\n{code}", "attachment": [], "flagged": false, "summary": "Hyperloop: Android - Can't instantiate a CoordinatorLayout in SDK 7.3.0", "creator": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "environment": "7.3.0.v20180816155220", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "440904", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nThanks for sharing with us. It would be great if you can share a simple test case to reproduce this on our end.\r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-21T04:18:23.000+0000", "updated": "2018-08-21T04:18:23.000+0000" }, { "id": "440907", "author": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "body": "{code}\r\nconst Activity = require('android.app.Activity');\r\nconst CoordinatorLayout = require(\"android.support.design.widget.CoordinatorLayout\");\r\nconst Color = require('android.graphics.Color');\r\n\r\nconst win = Ti.UI.createWindow();\r\nconst activity = new Activity(Ti.Android.currentActivity);\r\n\r\nconst layout = new CoordinatorLayout(activity);\r\nlayout.setBackgroundColor(Color.YELLOW);\r\nwin.add(layout);\r\n\r\nwin.open();\r\n{code}\r\n\r\nWhen running with 7.3.0.GA :\r\n{noformat}\r\n(main) [83,149] Exception during instantiation of class 'android.support.design.widget.CoordinatorLayout'\r\njava.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/coreui/R$attr;\r\n at android.support.design.widget.CoordinatorLayout.(CoordinatorLayout.java:202)\r\n at android.support.design.widget.CoordinatorLayout.(CoordinatorLayout.java:198)\r\n at java.lang.reflect.Constructor.newInstance0(Native Method)\r\n at java.lang.reflect.Constructor.newInstance(Constructor.java:334)\r\n at hyperloop.ClassProxy.newInstance(ClassProxy.java:89)\r\n at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:183)\r\n at org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:247)\r\n at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:135)\r\n at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:190)\r\n at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:171)\r\n at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:675)\r\n at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:176)\r\n at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:160)\r\n at android.app.Activity.performCreate(Activity.java:6975)\r\n at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)\r\n at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)\r\n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)\r\n at android.app.ActivityThread.-wrap11(Unknown Source:0)\r\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)\r\n at android.os.Handler.dispatchMessage(Handler.java:105)\r\n at android.os.Looper.loop(Looper.java:164)\r\n at android.app.ActivityThread.main(ActivityThread.java:6541)\r\n at java.lang.reflect.Method.invoke(Native Method)\r\n at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)\r\nCaused by: java.lang.ClassNotFoundException: Didn't find class \"android.support.coreui.R$attr\" on path: DexPathList[[zip file \"/data/app/test.test.test-PaJox8-SBb_08twvLLYZMA==/base.apk\"],nativeLibraryDirectories=[/data/app/test.test.test-PaJox8-SBb_08twvLLYZMA==/lib/x86, /data/app/test.test.test-PaJox8-SBb_08twvLLYZMA==/base.apk!/lib/x86, /system/lib, /system/vendor/lib]]\r\n at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)\r\n at java.lang.ClassLoader.loadClass(ClassLoader.java:379)\r\n at java.lang.ClassLoader.loadClass(ClassLoader.java:312)\r\n ... 26 more\r\n{noformat}\r\n", "updateAuthor": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "created": "2018-08-21T04:56:33.000+0000", "updated": "2018-08-21T04:56:33.000+0000" }, { "id": "440946", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Your issue is different to what your comments state. The issue above is about missing {{attr}} values in your project that are required to instantiate a {{CoordinatorLayout}} programmatically. But if the example from the hyperloop-examples repo does not work anymore, it'd be an actual regression. We need to investigate in that direction.\r\n\r\n*EDIT*: Here is the actual error:\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [30081,30386] /hyperloop/android.view.LayoutInflater.js:390\r\n[ERROR] TiExceptionHandler: \tvar result = this.$native.callNativeFunction({\r\n[ERROR] TiExceptionHandler: ^\r\n[ERROR] TiExceptionHandler: Error: Binary XML file line #2: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout\r\n[ERROR] TiExceptionHandler: at LayoutInflater.inflate (/hyperloop/android.view.LayoutInflater.js:390:28)\r\n[ERROR] TiExceptionHandler: at /alloy/controllers/nativelayout.js:51:806\r\n[ERROR] TiExceptionHandler: at new Controller (/alloy/controllers/nativelayout.js:51:882)\r\n[ERROR] TiExceptionHandler: at Object.exports.createController (/alloy.js:339:9)\r\n[ERROR] TiExceptionHandler: at ListView.onListViewItemclick (/alloy/controllers/index.js:114:31)\r\n[ERROR] TiExceptionHandler: at ListView.value (ti:/events.js:49:21)\r\n[ERROR] TiExceptionHandler: at ListView.value (ti:/events.js:101:19)\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] V8Exception: Exception occurred at /hyperloop/android.view.LayoutInflater.js:390: Uncaught Error: Binary XML file line #2: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout\r\n{code}\r\nIt may be related to the support-library update we did in 7.3.0? Renaming the support library could fix it. cc [~jquick] for a 2nd thought.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-21T14:52:59.000+0000", "updated": "2018-08-21T15:00:06.000+0000" }, { "id": "440995", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Just to confirm, I was able to use the example in question with 7.2.0.GA and it is broken on 7.3.0.GA and the latest 7_3_X builds of the SDK. The error message is not very helpful, but certainly Hans' suggestion regarding the updated support libraries is also my suspicion:\r\n* https://github.com/appcelerator/titanium_mobile/commit/53da13c4fe\r\n* https://github.com/appcelerator/titanium_mobile/commit/86e84eeb39\r\n", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-08-22T18:29:29.000+0000", "updated": "2018-08-22T19:11:06.000+0000" }, { "id": "441006", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10279", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-23T04:08:59.000+0000", "updated": "2018-08-23T04:09:07.000+0000" }, { "id": "441030", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (7.4.x): https://github.com/appcelerator/titanium_mobile/pull/10281\r\nPR (7.3.x): https://github.com/appcelerator/titanium_mobile/pull/10282", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-23T22:45:20.000+0000", "updated": "2018-08-23T22:45:20.000+0000" }, { "id": "441031", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-23T23:48:52.000+0000", "updated": "2018-08-23T23:48:52.000+0000" }, { "id": "441038", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* verified fix in SDK version {{7.5.0.v20180823165211}}, {{7.4.0.v20180823165354}} and {{7.3.1.v20180823165225}}.\r\n\r\nTest and other information can be found at: \r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/10279\r\n7.4.X: https://github.com/appcelerator/titanium_mobile/pull/10281\r\n7.3.X: https://github.com/appcelerator/titanium_mobile/pull/10282", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-24T09:30:15.000+0000", "updated": "2018-08-24T09:30:15.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }