expo: [expo-camera & expo-face-detector] App crashing after building.
🐛 Bug Report
Environment
Native Project ( started with: react-native init )
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-unimodules": "^0.5.0",
"expo-camera": "^6.0.0",
"expo-face-detector": "^6.0.0",
Steps to Reproduce
-
Create a new project:
react-native init expoCamera --version react-native@0.59.8 -
Install React Native Unimodules following the steps in the repo: https://github.com/unimodules/react-native-unimodules/
-
Install expo-camera following the steps in the repo: https://github.com/expo/expo/tree/master/packages/expo-camera
-
Render
<Camera>from'expo-camera'with the proponFacesDetected -
Try to run the application in Android:
react-native run-android
Expected Behavior
Be able to detect faces using <Camera onFacesDetected={}>
Actual Behavior
The App crashes after is built.
Reproducible Demo
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (3 by maintainers)
Sounds like you’ve named the Android package different to what you put in the firebase config,
Confirmed: adding the firebase config fixes the crash, make sure to add a google-services.json to /app!
@hfllr I still have this problem
I had this issue, in my case I had those logs :
To fix this you have to setup Firebase for your app.