I'm trying to read metadata from a resource using MediaMetadataRetriver, it works in debug variant, but crash in release variant.
java.lang.RuntimeException: setDataSource failed: status = 0x80000000
what should it do??
In case your Gradle is configured to shrink resources in the release variant (shrinkResources true), you probably will not be able to read the resource metadata (the shrink algorithm could destroy the resource metadata).
there are 2 possible solutions:
User contributions licensed under CC BY-SA 3.0