Repository navigation
Conversation
Fresco 3.9.0 reads a HEIF image's EXIF orientation with `androidx.exifinterface.media.ExifInterface` (`HeifExifUtil.getOrientation`), but no Fresco artifact declares that dependency and neither does ReactAndroid. An app that does not depend on ExifInterface some other way throws `NoClassDefFoundError` when it decodes its first HEIC or HEIF image. Fresco catches only `IOException` there, and the error is thrown on a background thread, so it ends the process. Make `androidx.exifinterface:exifinterface` 1.4.2 a dependency of ReactAndroid so that every app that gets Fresco through React Native also gets the class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Fresco 3.9.0 reads a HEIF image's EXIF orientation with
androidx.exifinterface.media.ExifInterface(com.facebook.imageutils.HeifExifUtil.getOrientation, inimagepipeline-base). No Fresco 3.9.0 artifact declares a dependency onandroidx.exifinterface, and neither does ReactAndroid. An app that does not depend on ExifInterface some other way throws when it decodes its first HEIC or HEIF image:HeifExifUtilcatches onlyIOException, and the error is thrown on a background thread, so it ends the process.ReactAndroid now depends on
androidx.exifinterface:exifinterface1.4.2, declared in the version catalog, so every app that gets Fresco through React Native also gets the class.Changelog:
[ANDROID] [FIXED] - Include the ExifInterface dependency that Fresco needs to decode HEIC and HEIF images
Test Plan:
Checked on
upstream/main94aee19ac9(2026-11-28):fresco,imagepipeline,imagepipeline-base,fbcore,drawee,middleware,ui-common,ui-core,imagepipeline-okhttp3,imagepipeline-native, the threememory-type-*,nativeimagefilters,nativeimagetranscoder,urimod,vito-source,soloader) mentionsexifinterface.javap -p -conHeifExifUtilfromimagepipeline-base-3.9.0.aarshowsnew androidx/exifinterface/media/ExifInterfacewith an exception table that covers onlyjava/io/IOException.androidx.exifinterface:exifinterface:1.4.2exists on Google's Maven repository.java -jar node_modules/ktfmt/lib/ktfmt.jar --dry-run --set-exit-if-changed packages/react-native/ReactAndroid/build.gradle.kts: clean.git diff --check: clean.Run on this base (2026-11-28):
main: "No dependencies matching given input were found in configuration ':packages:react-native:ReactAndroid:debugRuntimeClasspath'".androidx.exifinterface:exifinterface:1.4.2on that runtime classpath.Not run: decoding a HEIC image on a device or emulator.
🤖 Generated with Claude Code