AI Adoption - Drive Business Value and Organizational Impact
Gain a Splash of New Skills - Coursera+ Annual Just ₹7,999
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to debug and troubleshoot the R8 optimizer in this 12-minute technical video from Android Developers' Spotlight Week. Master the essential skills for diagnosing and resolving common R8 optimization issues including mysterious crashes, unreadable stack traces, and extended debugging sessions. Explore the root causes of R8-related problems and understand how keep rules function as the primary solution. Discover how to specify keep rules using the default ProGuard file and master the proper syntax for writing effective keep rules. Follow best practices for creating maintainable and efficient keep rules that prevent optimization issues while preserving necessary code. Utilize R8 inspections to identify potential problems before they occur in production and learn techniques for creating more targeted, narrower keep rules that minimize performance impact. Work through a practical example using the Androidify app to understand how to handle obfuscated crashes and leverage automatic Logcat retrace functionality for faster debugging. Examine library-specific considerations when working with R8 optimization and third-party dependencies. Access comprehensive resources including official documentation on app optimization, keep rules best practices, debugging guides, and performance optimization strategies to support your ongoing development work.
Syllabus
0:00 - Introduction
0:54 - Cause of issues and keep rules
1:10 - How you specify keep rules and default proguard file
1:43 - Keep rule syntax
2:47 - Best practices in keep rules
5:22 - R8 inspections
6:15 - Tip on how to go to a narrower keep rule
7:13 - Obfuscated Crash in the Androidify app, Automatic Logcat retrace
10:33 - Library section
11:15 - Recap
Taught by
Android Developers