Android Question Strange Error!

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
Does anyone have an idea what could this error be?
B4X:
java.lang.ClassCastException: android.widget.TextView cannot be cast to android.view.ViewGroup
    at android.app.BackStackRecord.configureTransitions(BackStackRecord.java:1300)
    at android.app.BackStackRecord.beginTransition(BackStackRecord.java:1021)
    at android.app.BackStackRecord.run(BackStackRecord.java:728)
    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1585)
    at android.app.FragmentManagerImpl$1.run(FragmentManager.java:484)
    at android.os.Handler.handleCallback(Handler.java:761)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:156)
    at android.app.ActivityThread.main(ActivityThread.java:6523)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
Thank you in advance!
 

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
Thank you for your response!
I really don't know where the code crashed, but I can send you the code I think crashed.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I really don't know where the code crashed
you did not post the full stacktrace

Note that you are trying to cast a textview (probably label) to a viewgroup (probably panel).
 
Upvote 0
Top