FFmpegMediaMetadataRetriever icon indicating copy to clipboard operation
FFmpegMediaMetadataRetriever copied to clipboard

Failed in release Android Application

Open Purvik opened this issue 6 years ago • 2 comments
trafficstars

Developed react-native application with react-native-media-meta dependency that uses this library for Android. In debug everything works fine but only on release it's getting error as below for this library. java.lang.NoSuchFieldError: no "J" field "mNativeContext" in class "Lwseemann/media/FFmpegMediaMetadataRetriever;" or its superclasses at wseemann.media.FFmpegMediaMetadataRetriever.native_init(Native Method) at wseemann.media.FFmpegMediaMetadataRetriever.<clinit>(Unknown Source:43) at com.mybigday.rnmediameta.RNMediaMeta.getMetadata(Unknown Source:19) at com.mybigday.rnmediameta.RNMediaMeta.access$000(Unknown Source:0) at com.mybigday.rnmediameta.RNMediaMeta$1.run(Unknown Source:8)

It's happening when I'm selecting video from media and passing path to react-native-media-meta this library. Every thing works fine in debug only release is getting failed. Please help.

Purvik avatar May 22 '19 13:05 Purvik

This sounds like it may be a proguard obfuscation issue since it only occurs on release builds. Have you tried building the release version without proguard?

wseemann avatar Jun 18 '19 07:06 wseemann

@wseemann The same issue happens for me too. I have built the app without proguard but still this happens.

ganes1410 avatar Jan 30 '20 12:01 ganes1410

Closed due to inactivity.

wseemann avatar Feb 14 '23 04:02 wseemann