Tokopedia Jan 18, 2022

How We Solve the Sideloading Crash After App Bundle Implementation

Article Summary

Tokopedia shipped Android App Bundles and immediately hit a wall: mystery crashes on random devices. The culprit? Sideloaded APKs missing critical resources.

When Tokopedia adopted Google's App Bundle format in early 2019, they saved 25% on download size but discovered a critical edge case. Users installing APKs from third-party stores or shared files experienced splash screen crashes due to missing drawable resources.

Key Takeaways

Critical Insight

A few lines of code using Google's Play Core Library transformed fatal sideloading crashes into graceful reinstall prompts, protecting users who install APKs outside the Play Store.

The article includes a complete reproduction guide with sample code that shows exactly how to simulate and fix this crash before your users encounter it.

Recent from Tokopedia

Related Articles