android.os.TransactionTooLargeException:数据包大小565156字节 [英] android.os.TransactionTooLargeException: data parcel size 565156 bytes
本文介绍了android.os.TransactionTooLargeException:数据包大小565156字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在有这么多的滚动应用通过说以下内容而崩溃之后,我的Viewpager带有碎片,
I have viewpager with fragmens, after so many scrolls app getting crashed by saying follwing , even their is no bundle exchange
在监视的同时,我发现以下导致崩溃的键
while monitoring i found this following keys making the crash
* android:support:fragments = 561.3 KB
* android:fragments = 0.4 KB
* com.google.firebase.analytics.screen_service = 0.2 KB
* android:lastAutofillId = 0.1 KB
* android:viewHierarchyState = 3.0 KB
这些都是默认值,我没有分配任何捆绑包该如何解决此问题.
these are all defalut, i am not assigning any bundle how can i fix this issue.
推荐答案
可以通过如下清除已保存的Bundle数据来解决此问题
This issue can be fixed by clearing saved Bundle data like below
@Override
protected void onSaveInstanceState(Bundle InstanceState) {
super.onSaveInstanceState(InstanceState);
InstanceState.clear();
}
这篇关于android.os.TransactionTooLargeException:数据包大小565156字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文