DylanVann / react-native-fast-image

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

Task :react-native-fast-image:compileDebugJavaWithJavac FAILED #881

Closed vuongqtvn closed 2 years ago

vuongqtvn commented 2 years ago

Describe the bug when I raise the compileSdkVersion, minSdkVersion and targetSdkVersion minSdkVersion = 23 compileSdkVersion = 31 targetSdkVersion = 31 when I run the app again, the error appears as shown

Screen Shot 2022-02-22 at 14 11 27

Dependency versions

anhquan291 commented 2 years ago

Facing the same issue on Android Mac M1. However, it works on Intel. Any suggestions please? Thanks

coneforapine commented 2 years ago

Can confirm, I also have the same issue on M1 Mac.

coneforapine commented 2 years ago

Upon further inspection, I found my java version was 1.8.0. I updated to OpenJDK 17.0.2 and that fixed the issue for me.

wdospinal commented 2 years ago

I also have the same issue with

Dependency versions

React Native version: 0.66.3 React version: 17.0.2 React Native Fast Image version: 8.5.11

longb1997 commented 2 years ago

+1

longb1997 commented 2 years ago

Facing the same issue on Android Mac M1. However, it works on Intel. Any suggestions please? Thanks

I also met it on Intel Mac

gamingumar commented 2 years ago

@DuongVuongUTE how did you resolve the issue?

vuongqtvn commented 2 years ago

@gamingumar I updated openjdk1.8 to openjdk11

gamingumar commented 2 years ago

Hi @DuongVuongUTE I believe I already have openjdk11. Can you please confirm how you updated it?

anhquan291 commented 2 years ago

@gamingumar brew tap homebrew/cask-versions brew install --cask zulu11

vuongqtvn commented 2 years ago

@gamingumar clean jdk android studio -> I have reinstalled the environment according to the instructions from the homepage https://reactnative.dev/docs/environment-setup and created a new project and it fixed the error image this is the project I just create here https://www.mediafire.com/file/1ary7n60qophtf4/fastimage.rar/file