Awesome Open Source
Awesome Open Source

Now in Kotlin!


A tool for debugging TransactionTooLargeException on Android.

"Most underrated solution." - Kedar Paranjape, Jun 7 '18 at 14:26


  1. Include toolargetool as a dependency (you can remove it again once you've debugged your crash):

    • Add maven { url '' } in your project's build.gradle:

      allprojects {
          repositories {
              maven { url '' }
    • Add implementation '[email protected]' in your module's build.gradle:

      dependencies {
          implementation '[email protected]'
          //implementation '[email protected]' // if you don't use AndroidX in your project
  2. Import The package

  3. Add code to start logging during app start, for example in your Application.onCreate method:

  4. Monitor logcat output to see which components are writing substantial data to the transaction buffer and when:

    $ adb logcat -s TooLargeTool

    Example logcat output (TODO: improve this example):

    D/TooLargeTool: MainActivity.onSaveInstanceState wrote: [email protected] contains 1 keys and measures 0.6 KB when serialized as a Parcel
                                                                            * android:viewHierarchyState = 0.6 KB

Release process

Note: these instructions will only work if you have the relevant Bintray credentials

  1. Open toolargetool/bintray.gradle.
  2. Increase all the version numbers.
  3. Make a commit and tag it with git tag -a v<version number> -m "<message>".
  4. Run ./gradlew clean install && ./gradlew bintrayUpload.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
android (5,775
kotlin (3,077
debugging (162
crash-reporting (57

Find Open Source By Browsing 7,000 Topics Across 59 Categories