Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pTinosq opened this issue Sep 3, 2024 · 13 comments · May be fixed by #1050
Open

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

pTinosq opened this issue Sep 3, 2024 · 13 comments · May be fixed by #1050
Labels

Comments

@pTinosq
Copy link

pTinosq commented Sep 3, 2024

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

  • React Native version: 0.75.2
  • React version: 18.3.1
  • React Native Fast Image version: ^8.6.3
@pTinosq pTinosq added the bug label Sep 3, 2024
@itsnyx
Copy link

itsnyx commented Sep 3, 2024

++same here

@pavelustenko
Copy link

the same

@pTinosq
Copy link
Author

pTinosq commented Sep 3, 2024

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

@hoangngocthangbmw
Copy link

the same

@manualexSP
Copy link

same

@itsShivamBhalla
Copy link

same++

@TOPans
Copy link

TOPans commented Sep 4, 2024

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

from this issue
#1045

@MAsadIlyasNajum
Copy link

same for me

@Fouzhan21
Copy link

same

@jakecurreri
Copy link

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

@deepanshushuklad11
Copy link

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

@lucianolopezz
Copy link

same

@lucianolopezz
Copy link

Updated react-native to 0.75.4, worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.