cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-plugin-media] brunocbatista edited a comment on issue #277: [Android only] Audio file doesn't play
Date Mon, 01 Jun 2020 20:35:27 GMT

brunocbatista edited a comment on issue #277:
URL: https://github.com/apache/cordova-plugin-media/issues/277#issuecomment-637087049


   (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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message