[英]android.os.TransactionTooLargeException: data parcel size 565156 bytes
I have viewpager with fragmens, after so many scrolls app getting crashed by saying follwing , even their is no bundle exchange 我有很多用了fragmens的viewpager,在说了以下follwing导致很多滚动应用崩溃之后,即使它们没有捆绑交换
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. 这些都是默认值,我没有分配任何捆绑包我该如何解决此问题。
This issue can be fixed by clearing saved Bundle data like below 可以通过清除保存的Bundle数据来解决此问题,如下所示
@Override
protected void onSaveInstanceState(Bundle InstanceState) {
super.onSaveInstanceState(InstanceState);
InstanceState.clear();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.