Tagged articles
R8
17 articles · Page 1 of 1
Android 17 introduces a system‑level MemoryLimiter that silently kills apps exceeding per‑device RAM limits, making bitmap memory the primary optimization target; the article explains the mechanism, detection methods, new Android Studio tools, and five concrete strategies to keep your app alive.
AndroidAndroid StudioBitmap optimization
0 likes · 20 min read

Android 17 introduces MemoryLimiter, a system‑level app memory cap that silently kills processes exceeding device‑based limits, making unoptimized Bitmaps the biggest risk; the article explains the mechanism, detection methods, and five concrete Bitmap‑optimisation strategies plus new Android Studio tools to keep apps alive.
Android 17Android StudioBitmap optimization
0 likes · 20 min read

This article explains the differences between D8 and R8, details R8’s advanced optimization techniques, discusses challenges like reflection and keep‑rules, and highlights recent tooling improvements and future features that make R8 essential for faster, smaller Android apps.
AndroidR8code optimization
0 likes · 9 min read

This guide explains why Android performance matters to users, developers, and business, then walks through Google’s diagnostic tools, R8 optimization steps, continuous monitoring, and a Reddit case study that turned a two‑week effort into a one‑star rating boost.
AndroidApp VitalsJetpack Macrobenchmark
0 likes · 13 min read

This article explains how R8’s ApiModel optimization can generate a redundant new‑instance bytecode that triggers class initialization failures, why synchronized or try‑catch blocks also cause the issue, and presents four practical solutions including disabling ApiModel, official patches, custom fixes, and business‑level refactoring.
AndroidApiModelR8
0 likes · 16 min read

A mobile app deadlock was traced to a do‑while loop introduced by a weaver plugin that concurrently copied method nodes, causing ASM label‑node mismatches; adding thread synchronization to the method‑cloning process resolved the issue and underscores the concurrency risks of bytecode instrumentation.
R8Weaverbytecode
0 likes · 10 min read

The article explains how a missing keep rule caused R8’s pre‑AGP 8 reflection optimizer to skip a class because its interface wasn’t in the allowed set, leading to the class name being obfuscated and mismatched in static‑block initialization via Class.forName, and describes the optimizer’s behavior and fixes.
AGPAndroidClassLoading
0 likes · 8 min read

After upgrading Kuaishou's Android project from AGP 3.4.2 to 7.0.1, the APK size unexpectedly grew despite faster builds, leading to a deep investigation of Dex compression, R8 changes, and build tool versions, ultimately revealing a fastutil library mismatch that was resolved by forcing the correct version.
AGPAPK sizeAndroid
0 likes · 16 min read

The article explains how Meituan migrated its method‑instrumentation hot‑fix system Robust from ProGuard to Google’s R8 by moving change detection ahead of optimization, disabling or tuning R8’s built‑in optimizations, and implementing special handling for anonymous classes, inlined methods, super calls, constructors and static initializers to ensure reliable patch generation.
AndroidHotfixR8
0 likes · 21 min read

This article explains how WeChat Android moved from Proguard to R8, detailing the performance and size gains, the new build workflow, the numerous optimization pitfalls encountered, and the concrete fixes applied to ensure stable releases and smaller Tinker patches.
AndroidBuild OptimizationDEX
0 likes · 27 min read

This article details JD's Android app package‑size reduction journey, covering component analysis with APK Analyzer and zipinfo, dependency mapping via Gradle, a suite of slimming measures such as plugin‑to‑download, resource compression, R8, 7‑zip, and a systematic governance framework that ties component growth to enforceable size‑control policies, ultimately achieving over 30% reduction in APK size.
AndroidGradlePackage Analysis
0 likes · 24 min read

The article explains why reducing APK size improves download conversion and performance, then details a systematic, divide‑and‑conquer approach for Baidu App that trims Dex, resources, native libraries and ZIP overhead using tools such as R8, AndResGuard, ByteX, Booster and AGP, achieving a reduction from roughly 123 MB to 115 MB with up to 6 MB saved per batch and outlining plans to open‑source the utilities.
APK OptimizationAndroidDEX
0 likes · 17 min read

This article details JD's Android app migration to the R8 compiler, explains differences between ProGuard and R8, analyzes the impact of the -useuniqueclassmembernames rule, addresses v1 signing loss after AGP 3.6.4 upgrade, and provides practical solutions for build‑process ordering and packaging pitfalls.
AGPAndroidBuild Optimization
0 likes · 23 min read

The Baidu App team applied a systematic, sustainable approach—combining Dex, resource, and native‑library optimizations with tools such as R8, ProGuard, AndResGuard, and custom compression pipelines—to shrink the APK by several megabytes, improve download conversion, and establish reusable mechanisms for future builds.
APKAndroidDEX
0 likes · 20 min read

This article explains the hidden problem of engineering decay in Android app development, introduces Proguard/R8 core functions, details global and keep configurations, showcases detection tools and governance practices, and provides actionable steps to reduce build time and APK size.
AndroidCode ShrinkingR8
0 likes · 24 min read

Upgrading from AGP 3.5.0 to 4.1.0 dramatically simplifies R class generation, removes redundant R files via R8‑based inlining, reduces APK size by ~7 MB, and speeds up release builds by over ten minutes, as demonstrated through detailed build‑artifact comparisons and Gradle task analysis.
AGPAPK sizeAndroid
0 likes · 13 min read

This article provides a comprehensive guide to Android code obfuscation, covering the purpose and benefits of minification, detailed ProGuard/R8 configuration, resource shrinking, desugaring, D8/R8 internals, custom obfuscation dictionaries, and modular ProGuard rules for multi‑module projects.
AndroidD8Gradle
0 likes · 23 min read
