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.

@SystemService FingerprintManager not compiling #1797

Description

@nishal

Using Android Studio with Gradle and get this error when I try to @SystemService inject the FingerprintManager service.

Error:(18, 5) error: Unknown service type: android.hardware.fingerprint.FingerprintManager
Warning:(19, 24) Element fingerprintManager invalidated by SystemServiceHandler

Any help appreciated. TIA

Activity

  1. dodgex commented on Jun 13, 2016

    @dodgex
    Member

    currently @SystemService does not support the FingerprintManager. you have to use getSystemService() directly

  2. WonderCsabo commented on Jun 13, 2016

    @WonderCsabo
    Member

    @nishal API 23 services are not added, yet, but i will add them shorty.

  3. WonderCsabo commented on Jun 13, 2016

    @WonderCsabo
    Member

    Actually it is a bug, too, we define android.service.fingerprint.FingerprintManager instead of android.hardware.fingerprint.FingerprintManager.

  4. WonderCsabo commented on Jun 13, 2016

    @WonderCsabo
    Member

    The bug is due to renaming the hidden service class and exposing it under a new package in API 23 (we supported the old one as a hidden service). The same happened with NetworkStatsManager.

  5. self-assigned this
    on Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions