关于TransactionTooLargeException

Android 在7.0开始将TransactionTooLargeException抛出,导致crash,而在之前只会是一个内部warning。

造成这个的原因是Bundle过大,使用工具来检查每一个页面的bundle的大小。

compile 'com.gu.android:toolargetool:0.1.3@aar' // in module build.gradle

建议大数据的传递借助于其它的一些工具比如EVENTBUS,结合Activity的生命周期发出数据。

猜你喜欢

转载自blog.csdn.net/u011750755/article/details/81304702