DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.15k stars 1.49k forks source link

Incompatible with RN 0.75.2 - > Task :react-native-fast-image:compileDebugJavaWithJavac FAILED #1048

Open pTinosq opened 1 week ago

pTinosq commented 1 week ago

Describe the bug I created a brand new empty RN project with version 0.75.2 and now I'm getting this error:

> Task :react-native-fast-image:compileDebugJavaWithJavac FAILED

> Task :app:processDebugManifestForPackage
43 actionable tasks: 24 executed, 19 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule, com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule]
C:\Users\xxx\AwesomeProject\node_modules\react-native-fast-image\android\src\main\java\com\dylanvann\fastimage\FastImageSource.java:72: error: isResource() in FastImageSource cannot override isResource() in ImageSource
    public boolean isResource() {
                   ^
  overridden method is final
C:\Users\xxx\AwesomeProject\node_modules\react-native-fast-image\android\src\main\java\com\dylanvann\fastimage\FastImageSource.java:101: error: getUri() in FastImageSource cannot override getUri() in ImageSource
    public Uri getUri() {
               ^
  overridden method is final
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-fast-image:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

BUILD FAILED in 7s

To Reproduce Steps to reproduce the behavior if possible, or a link to a reproduction repo:

  1. Create a new react native project with no framework
  2. run npm install react-native-fast-image
  3. See error

Expected behavior I expect the app ro build with no issues,

Dependency versions

itsnyx commented 1 week ago

++same here

pavelustenko commented 1 week ago

the same

pTinosq commented 1 week ago

We have decided to move to expo-image. Looks like react-native-fast-image is properly dead. RIP

hoangngocthangbmw commented 1 week ago

the same

manualexSP commented 1 week ago

same

itsShivamBhalla commented 1 week ago

same++

TOPans commented 1 week ago

You need to patch the library react-native-fast-image+8.6.3.patch

from this issue https://github.com/DylanVann/react-native-fast-image/issues/1045

MAsadIlyasNajum commented 1 week ago

same for me

Fouzhan21 commented 1 week ago

same

jakecurreri commented 1 week ago

Moved our projects over to https://github.com/candlefinance/faster-image. Solid alternative.

deepanshushuklad11 commented 5 days ago

@pTinosq Issue has been fixed in @d11/react-native-fast-image