Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3518] ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-04-22T20:41:48.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAppcelerator Modules, Studio, Titanium SDK & CLI
Labelsn/a
ReporterManish Budhiraja
AssigneeShak Hossain
Created2016-04-18T09:41:41.000+0000
Updated2016-04-26T06:20:09.000+0000

Description

Hi, I'm getting crashes because of ti.modules.titanium.ui.widget.TiUILabel$1 java.lang.ClassCastException Reason: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup Namejava.lang.ClassCastException Reason ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup Crashed Thread 0 java.lang.ClassCastException: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup ! 1 at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1132) 2 at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1039) 3 at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:658) 4 at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1572) 5 at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:493) 6 at android.os.Handler.handleCallback(Handler.java:739) 7 at android.os.Handler.dispatchMessage(Handler.java:95) 8 at android.os.Looper.loop(Looper.java:145) 9 at android.app.ActivityThread.main(ActivityThread.java:5938) 10 at java.lang.reflect.Method.invoke(Native Method) 11 at java.lang.reflect.Method.invoke(Method.java:372) 12 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389) 13 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184)

Attachments

FileDateSize
Screen Shot 2016-04-18 at 3.08.26 PM.png2016-04-18T09:39:05.000+0000223846

Comments

  1. Nazmus Salahin 2016-04-19

    Hello, Thanks for reporting. Please provide us steps to reproduce this issue so that we can test the issue and find the cause. Please try to share simple test code which creates the crash. Thanks
  2. Manish Budhiraja 2016-04-26

    Hello Nazmus Here find the Test Code XML TSS ".labelOuterContainer":{ height: Ti.UI.SIZE, width: Ti.UI.SIZE, layout: "horizontal", top: 10 } ".labelInnerContainer":{ height: Ti.UI.SIZE, width: Ti.UI.SIZE, layout: "vertical" } ".headerLabel":{ color: Alloy.Globals.Colors.WHITE, left: 0, font:{ fontSize: 10 }, wordWrap: false, ellipsize: true, width:Ti.UI.SIZE } ".headerLabel[formFactor=tablet]":{ font:{ fontSize: 16 } } ".contentLabel":{ color: Alloy.Globals.Colors.WHITE, top: 3, left: 0, font:{ fontSize: 14 }, ellipsize: true, width:Ti.UI.SIZE } ".contentLabel[formFactor=tablet]":{ font:{ fontSize: 20 } } ".headerLabel[platform=ios formFactor=handheld]":{ minimumFontSize: 10, height: 14, ellipsize: false } ".headerLabel[platform=ios formFactor=tablet]":{ minimumFontSize: 16, height: 20, ellipsize: false } ".contentLabel[platform=ios formFactor=handheld]":{ minimumFontSize: 14, height: 18, ellipsize: false } ".contentLabel[platform=ios formFactor=tablet]":{ minimumFontSize: 20, height: 24, ellipsize: false } ".innerView":{ width: 20, height: Ti.UI.SIZE }

JSON Source