ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

Latest version 0.39.0 fails to compile & build successfully #1878

Open ravindran-a opened 1 year ago

ravindran-a commented 1 year ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

Expected to build successfully

Actual behaviour

Build failing

Attachments

image
EslamElMeniawy commented 1 year ago

ReactNative v0.70.6 uses compileSdkVersion=31 so Build.VERSION_CODES.TIRAMISU is not available as it is available from version 33 only. So for workaround now I changed the compile SDK version in my project to be 33 to be able to build and run the app.

acarkaan commented 1 year ago

ReactNative v0.70.6 uses compileSdkVersion=31 so Build.VERSION_CODES.TIRAMISU is not available as it is available from version 33 only. So for workaround now I changed the compile SDK version in my project to be 33 to be able to build and run the app.

solved the problem. thank u.

nschild commented 1 year ago

Please mark 0.39.0 as a breaking change. CompilesSdkVersion >= 31 requires a minimum of react native 0.65 or 0.64 (I don't remember which) and a Gradle update as well. And, as in our situation, almost every native library has to be updated as this now requires the exported attribute on all the various tags in the android manifests.

Could be an addendum to the existing note or as other libraries do it in a table format. "If you are using react-native >= 0.60 use react-native-image-crop-picker version >= 0.25.0. Otherwise use version < 0.25.0."

AntonioLi1 commented 1 year ago

ReactNative v0.70.6 uses compileSdkVersion=31 so Build.VERSION_CODES.TIRAMISU is not available as it is available from version 33 only. So for workaround now I changed the compile SDK version in my project to be 33 to be able to build and run the app.

Thanks for the solution! Is this a short term fix or will it be for the long term?

log901108 commented 1 year ago

any further fix here? My app doesn't work with android under 31

cyhnkckali commented 1 year ago

Will there be any fixes for this issue?

priyanu17 commented 1 year ago

Facing Same problem , does not compile on android, ios is working

Reagankm commented 1 year ago

Yeah. Compile version 33 is not workable for me. That only runs on 7% of Android devices. Whereas version 27, like it states in the README, covers 90%

RodolfoGS commented 1 year ago

Same issue, in the meantime I'll stay on 0.38.1, since the changes of 0.39.0 are not too relevant for me.

https://github.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.39.0

tapz commented 1 year ago

Setting compileSdkVersion=33 in build.gradle ofr my app does not help. Still seeing the same error.

luchozamora commented 1 year ago

As @RodolfoGS said, staying on version 0.38.1 should be enough.

Simply downgrade with yarn add react-native-image-crop-picker@0.38.1