I’am getting the following error (logged in Sentry) while testing my Android (apk) build in the Android simulator.
Encountered an exception while calling native method: Exception occurred while executing exported method hasHardwareAsync on module ExpoLocalAuthentication: null
Using SDK 35 in managed workflow and "expo-local-authentication": "~7.0.0"
When running the app in development on the Android Emulator in the Expo Client there is no error occurring.
Was missing the “USE_FINGERPRINT” permission for Android. Adding that fixed the issue. Maybe it’s an idea to add it in the local-authentication documentation that this permission is required on Android. Because I completely missed it and the error isn’t clear that it’s a permission issue.