ARTICLE AD BOX
ERROR Capture error: [Error: Call to function 'ExpoMediaLibrary.requestPermissionsAsync' has been rejected.
→ Caused by: You have requested the AUDIO permission, but it is not declared in AndroidManifest. Update expo-media-library config plugin to include the permission before requesting it.]
Code: construct.js
2 | var setPrototypeOf = require("./setPrototypeOf.js");
3 | function _construct(t, e, r) {
> 4 | if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
| ^
5 | var o = [null];
6 | o.push.apply(o, e);
7 | var p = new (t.bind.apply(t, o))();
Call Stack
construc
I tried bunch of solution but i can seem to get whats the issue. I am using expo-media-library. I also updated the app.json to have all the permission in them but still didnt worked.
I am trying to save image to gallary which i have clicked from camera and some overlay on top of image and then saving it to the phone gallary.
{ "expo": { "android": { "adaptiveIcon": { }, "edgeToEdgeEnabled": true, "predictiveBackGestureEnabled": false, "permissions": [ "android.permission.CAMERA", "android.permission.RECORD_AUDIO", "android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_MEDIA_VISUAL_USER_SELECTED", "android.permission.READ_MEDIA_IMAGES", "android.permission.READ_MEDIA_VIDEO", "android.permission.READ_MEDIA_AUDIO" ], "package": "com.ck34.GeoImg" }, ... "plugins": [ [ "expo-media-library", { "photosPermission": "Allow GeoImg to access your photos", "savePhotosPermission": "Allow GeoImg to save photos", "isAccessMediaLocationEnabled": true, "audioPermission": true } ] ], }