这是我在排查 release 包闪退时整理的笔记。打 prodRelease 包后装真机,进去就闪退——但奇怪的是,项目里两个 Retrofit 接口(AuthService 和 DictApi)写法完全一样,AuthService 用的页面正常,DictApi 用的页面崩溃。最后定位到 R8 混淆把 DictApi 接口收缩删掉了。这篇把完整的排查链路和根因讲清楚。
一、现象:同样的写法,一个崩一个不崩 ​
两个 Retrofit 接口定义几乎一样:
kotlin
// AuthService —— 正常
inter
