Error while trying to inject system service ROLE_SERVICE
Author: NoaDCreated Dec 22, 2020Updated Apr 10, 2021
AndroidAnnotations version: 4.8.0 Android compile SDK version: 29 Annotated code:
@SystemService RoleManager roleManager;Expected generated code:
private void init_(Bundle savedInstanceState) {
this.roleManager = ((RoleManager) this.getSystemService(Context.ROLE_SERVICE));
restoreSavedInstanceState_(savedInstanceState);
}Actual generated code: NA
Stacktrace in case of AA crash: I get the following error during build
Unknown service type: android.app.role.RoleManager
Task :app:kaptDevDebugKotlin FAILED
Source: androidannotations/androidannotations