You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/01 20:33:22 UTC

[GitHub] [cordova-plugin-media] brunocbatista commented on issue #277: [Android only] Audio file doesn't play

brunocbatista commented 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">
                  </application>
   
   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