I just got this new replacement phone today the samsung galaxy s20 ultra 5g. I open my camera app and it says warning failed. I have tried every way possible to fix this by watching YouTube videos and clearing cache and rebooting and everything else and nothing has worked I need help how do I fix this.
SOLUTION (worked on my Note 20 ultra): Go to settings/apps/camera. Then force stop and reset all settings. This worked for me after a recent software update took out my camera. I hope it works for you too. None of the other suggestions were of any use and I absolutely HATE when someone suggests to "just do a factory reset".