brunocbatista edited a comment on issue #271:
URL:
https://github.com/apache/cordova-plugin-media/issues/271#issuecomment-637086581
(Sorry for any mistake, English is not my official language.)
I have a solution for android 10.
1. Add to your `<edit-config>` in the config.xml file:
` <application android:requestLegacyExternalStorage="true" />`
2. Make sure that the build.gradle in the **/platforms/android/** folder has
the variables configured for sdk api level 29:
defaultBuildToolsVersion = "29.0.0"
defaultMinSdkVersion = 19
defaultTargetSdkVersion = 29
defaultCompileSdkVersion = 29
3. Finally, make sure your build is running at sdk's api level 29.
The error happens due to a lack of android permission on the external
storage folder (android 10 updates).
Links that I used as a basis to develop the solution
https://medium.com/@sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df
https://github.com/geosparks/geospark-cordova-example/issues/3#issuecomment-558510384
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]