使用Hilt注解了原MainApplication 打完补丁包报错must be attached to an @HiltAndroidApp Application
Author: ScFengYiCreated May 22, 2026Updated May 22, 2026
Android 12 Mumu模拟器 com.android.tools.build:gradle:8.x tinker版本:1.9.15.2 安装基准包没有问题,在基准包里面进行打补丁升级,重启后会报 Hilt Activity must be attached to an @HiltAndroidApp Application. Found: class com.test.MainApplication
Source: Tencent/tinker