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

Error while trying to inject system service ROLE_SERVICE #2299

Open
NoaD opened this issue Dec 22, 2020 · 2 comments
Open

Error while trying to inject system service ROLE_SERVICE #2299

NoaD opened this issue Dec 22, 2020 · 2 comments

Comments

@NoaD
Copy link

NoaD commented Dec 22, 2020

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

@NoaD
Copy link
Author

NoaD commented Dec 22, 2020

I assume the problem is that it's not listed here

@WonderCsabo
Copy link
Member

You are correct. Feel free to open a merge request!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants