Dima Siryk
Dima Siryk

Reputation: 91

Failed to find byte code for android/hardware/fingerprint/FingerprintManager$AuthenticationCallback

I get the following error while trying to run my app from Android Studio:

Failed to find byte code for android/hardware/fingerprint/FingerprintManager$AuthenticationCallback

Error occurred after updating buildToolsVersion to '27.0.3'.
Android Gradle plugin version 3.1.1, Gradle version 4.4.

How I can fix this?

Upvotes: 8

Views: 4214

Answers (4)

Bibin Baby
Bibin Baby

Reputation: 188

Disable the Instant Run option on Android studio

Upvotes: -1

vidulaJ
vidulaJ

Reputation: 1270

You should first check whether the Permission android.permission.USE_FINGERPRINT is included in the Manifest or not. If not should be included and built.

Upvotes: 0

Himanshu Mac
Himanshu Mac

Reputation: 11

FingerprintManager is now deprecated. API 28 BiometricPrompt is used so for now ! but it only works on Android Studio 3.2 which is currently not available. but soon it'll be...

Upvotes: 0

Jon Goodwin
Jon Goodwin

Reputation: 9153

Ah the instant run bug raises it's head again.

To disable Instant Run just uncheck the tick box (see SO answer).

This is Google issue 72811718 a bug in AS 3.1+

Upvotes: 20

Related Questions