ivpusic / react-native-image-crop-picker

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

Not working on android or PC #1928

Open Flow-Flow-Flow opened 1 year ago

Flow-Flow-Flow commented 1 year ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

-PC

Expected behaviour

open photo gallery and select one

Actual behaviour

the the whole app doesn't work anymore. I just have a white screen

Steps to reproduce

  1. write this code: /*const upload = () => { ImagePicker.openPicker({ width: 300, height: 400, cropping: true, includeBase64: true, }) .then((image) => { console.log(image); }) .catch((error) => { console.log(error); }); };

Attachments

the app doesn't even start. I can't show much...

remarkablemark commented 1 year ago

I am getting the build error:

> Task :react-native-image-crop-picker:compileReleaseJavaWithJavac FAILED
/Users/runner/work/1/s/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java:406: error: cannot find symbol
        permissionsCheck(activity, promise, Collections.singletonList(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU ? Manifest.permission.WRITE_EXTERNAL_STORAGE : Manifest.permission.READ_MEDIA_IMAGES), new Callable<Void>() {
                                                                                                                 ^
  symbol:   variable TIRAMISU
  location: class VERSION_CODES
/Users/runner/work/1/s/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java:406: error: cannot find symbol
        permissionsCheck(activity, promise, Collections.singletonList(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU ? Manifest.permission.WRITE_EXTERNAL_STORAGE : Manifest.permission.READ_MEDIA_IMAGES), new Callable<Void>() {
                                                                                                                                                                                             ^
  symbol:   variable READ_MEDIA_IMAGES
  location: class permission
shyvesCCD commented 1 year ago

I am getting this error: