[TIMOB-26329] Hyperloop: Android - Can't instantiate a CoordinatorLayout in SDK 7.3.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-08-23T23:48:57.000+0000 |
Affected Version/s | Release 7.3.0 |
Fix Version/s | Release 7.3.1 |
Components | Android, Hyperloop |
Labels | android, hyperloop |
Reporter | Luc-Edmond Gaspard |
Assignee | Joshua Quick |
Created | 2018-08-20T22:16:11.000+0000 |
Updated | 2018-08-24T09:30:27.000+0000 |
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
And if I try to create a CoordinatorLayout directly in hyperloop or in a java module I get this exception:
(main) [222,5668] Exception during instantiation of class 'android.support.design.widget.CoordinatorLayout'
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/coreui/R$attr;
Hello, Thanks for sharing with us. It would be great if you can share a simple test case to reproduce this on our end.
When running with 7.3.0.GA : {noformat} (main) [83,149] Exception during instantiation of class 'android.support.design.widget.CoordinatorLayout' java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/coreui/R$attr; at android.support.design.widget.CoordinatorLayout.
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 aCoordinatorLayout
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. *EDIT*: Here is the actual error:It 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.
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: * https://github.com/appcelerator/titanium_mobile/commit/53da13c4fe * https://github.com/appcelerator/titanium_mobile/commit/86e84eeb39
PR (master): https://github.com/appcelerator/titanium_mobile/pull/10279
PR (7.4.x): https://github.com/appcelerator/titanium_mobile/pull/10281 PR (7.3.x): https://github.com/appcelerator/titanium_mobile/pull/10282
FR Passed. PR's merged.
*Closing ticket.* verified fix in SDK version
7.5.0.v20180823165211
,7.4.0.v20180823165354
and7.3.1.v20180823165225
. Test and other information can be found at: Master: https://github.com/appcelerator/titanium_mobile/pull/10279 7.4.X: https://github.com/appcelerator/titanium_mobile/pull/10281 7.3.X: https://github.com/appcelerator/titanium_mobile/pull/10282