Error creating media file. #673
Comments
Hi, @Borisboky! Are you sure you have updated your AndroidManifest file with the right permissions?
|
Hi @diegocouto, |
The simulator doesn't have a camera... does it!? |
@npomfret It's the same problem on the device. The app crashes if the takePicture() function gets called. |
ok, do you have a stack trace from logcat? I suspect its running out of memory trying to rotate the image. If so, would you mind testing my PR which possibly works around the issue? |
Hmm, there does seem to be enough information there. The output of logcat is usually much more verbose, and when your app crashes there's usually a stack trace. I can't think of a way to help you without that information. Have you tried running it directly from android studio? The Android Montitor tab shows the full log cat from your device. |
If I show all error using
|
There are an awful lot of FileNotFound exceptions in your log. That doesn't look healthy. Is the device working properly? Have you tried creating a file on it using something like react-native-fs? |
Yes. Everything else works fine. I used react-native-fs but I deleted it and I don't use it anymore. |
@npomfret I think that I found what the problem was. The |
Hey, I'm having the exact same issue but changing the buildToolsVersion to 25.0.3 didn't make any difference. Still failing. Any ideas? |
Again, can you paste the stack trance in here. I'm surprised changing the tools version has fixed it, that doesn't make much sense to me at the moment. |
I'm getting an Error creating media file error on android simulator when I try to take a picture.
My code is as follows:
When takePicture function is called I get the error.
I use :
package.json :
The text was updated successfully, but these errors were encountered: