Telerik-Verified-Plugins / ImagePicker

Cordova Plugin For Multiple Image Selection
MIT License
182 stars 331 forks source link

AAPT: error: attribute android:requestLegacyExternalStorage not found. #212

Open penihel opened 4 years ago

penihel commented 4 years ago

After this https://github.com/Telerik-Verified-Plugins/ImagePicker/issues/209 I got this error on build

SDK Version 23

2020-08-08T12:37:35.7948747Z FAILURE: Build failed with an exception.
2020-08-08T12:37:35.7948903Z 
2020-08-08T12:37:35.7949041Z * What went wrong:
2020-08-08T12:37:35.7949694Z Execution failed for task ':app:processReleaseResources'.
2020-08-08T12:37:35.7949944Z > Android resource linking failed
2020-08-08T12:37:35.7950401Z   /home/vsts/work/1/s/src/ImplantaNetApp/platforms/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:34: AAPT: error: attribute android:requestLegacyExternalStorage not found.
2020-08-08T12:37:35.7950849Z       
2020-08-08T12:37:35.7951018Z   error: failed processing manifest.
2020-08-08T12:37:35.7951175Z 
2020-08-08T12:37:35.7951292Z * Try:
giulianok commented 4 years ago

@penihel i was able to solve it by:

dani-plutonio commented 4 years ago

Hi, I think you need to update your Cordova CLI to version 10.0.0 and your Cordova Android to 9.0.0 before you can add the requestLegacyExternalStorage flag.

saviour2008 commented 4 years ago

After this #209 I got this error on build

SDK Version 23

2020-08-08T12:37:35.7948747Z FAILURE: Build failed with an exception.
2020-08-08T12:37:35.7948903Z 
2020-08-08T12:37:35.7949041Z * What went wrong:
2020-08-08T12:37:35.7949694Z Execution failed for task ':app:processReleaseResources'.
2020-08-08T12:37:35.7949944Z > Android resource linking failed
2020-08-08T12:37:35.7950401Z   /home/vsts/work/1/s/src/ImplantaNetApp/platforms/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:34: AAPT: error: attribute android:requestLegacyExternalStorage not found.
2020-08-08T12:37:35.7950849Z       
2020-08-08T12:37:35.7951018Z   error: failed processing manifest.
2020-08-08T12:37:35.7951175Z 
2020-08-08T12:37:35.7951292Z * Try:

could you resolve the problem? I also block by this error

saviour2008 commented 4 years ago

@penihel hi, could you resolve this issue? I was blocked by the same issue

herbertbruno commented 4 years ago

@saviour2008 hi, could you resolve this issue? I was blocked by the same issue

https://github.com/Telerik-Verified-Plugins/ImagePicker/issues/216#issuecomment-712700569