shijingsh / react-native-customized-image-picker

iOS/Android image picker with support for camera, video compression, multiple images and cropping
245 stars 59 forks source link

Attribute android:requestLegacyExternalStorage not found #100

Open bhargav1997 opened 3 years ago

bhargav1997 commented 3 years ago

Issue 1) Firstly I used, 0.2.1 version of the customized-image-picker package then, some issues occurred so I moved on to 1.1.0 latest version its perfectly fine in IOS but in android, this kind of below issue occurred: Execution failed for task ':app:processDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed D:\ST\Paths\UI\feature_3618_publish_to_facebook\paths_mobile\Paths\android\app\src\main\AndroidManifest.xml:13:5-55:19: AAPT: error: attribute android:requestLegacyExternalStorage not found.

Issue 2) In the older version: 0.2.1 in android if I upgrade target SDK version 28 to 29 then the library camera won't work

React native version: 0.62.2 React Version: 16.11.0

Thanks in advance.

liukefu2050 commented 3 years ago

android:requestLegacyExternalStorage

it is for android P

you can remove it from your manifest file

sandeepg1220 commented 3 years ago

@bhargav1997 the following link will be solve your problem.

https://stackoverflow.com/questions/58976425/aapt-error-attribute-androidrequestlegacyexternalstorage-not-found#:~:text=You%20need%20to%20compile%20against,it's%20introduced%20in%20Android%2010.&text=It%20will%20work.&text=Just%20delete%20line%20android%3ArequestLegacyExternalStorage,can%20use%20under%20Api%2029.