This article is also relevant for apps that use the camera, like Snapchat, TikTok, etc.
How to Fix It When the Android Camera Isn’t Working
end the app.
Turn on the Camera access tile.

This is accessible when you swipe down from the top of the screen.
It’s next to other toggles for the internet, Airplane Mode, Bluetooth, etc.
If it’s toggledon, it’ll be highlighted, like in the third photo below.

When it’s toggledoff, any app that attempts to use the camera will just show a black screen.
Edit the Quick tweaks menuif you don’t see the tile.
Update the app that’s having problems.
Close any other app that might be using the camera.
wipe the app cache.
Do this for whatever app is having issues, be it Camera, Snapchat, etc.
Delete the app, and then install it again.
We’ve seen this work when clearing the cache didn’t help.
Update the Android OS, if one is available.
The fix for a big bug with the camera could be pending in an operating system update.
Let your phone cool down.
Set your phone aside and let it cool down.
It’s possible for excessive heat to be causing camera issues.
Gently tap the camera, or firmly strike the back of the phone a few times.
This is a pretty rare solution.
Factory reset your phone.
Any software-related issues should be resolved after a factory reset.
This is a drastic step.
So check that toback up your Android phone.
Replace the camera sensors.
If you have a Pixel phone, check out Google’s Get Your Pixel Phone Repaired page.
It looks like a rectangle made of two arrows pointing clockwise.