I hope it will help you - My solution with granting all permissions in your project (WRITE_EXTERNAL_STORAGE, CAMERA, RECORD_AUDIO)