Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Error while trying to inject system service ROLE_SERVICE #2299

@NoaD

Description

@NoaD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions