React-native-image-crop-picker: Crashing on Android RN 0.59.2

Created on 29 Mar 2019  路  5Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.23.1
  • react-native v0.59.2

Platform

  • Android

Expected behaviour

Open a photo gallery

Actual behaviour

Crashing with an error

Steps to reproduce

ImagePicker.openPicker()

Attachments

Screenshot 2019-03-29 at 9 05 43

I've reinstalled it couple of times. Tried other solutions in the issue tracker when the library is crashing but nothing is working. I don't have any issues on iOS.

Gradle version is the one that comes with RN 0.59.2
classpath 'com.android.tools.build:gradle:3.3.1'

It is the same on real device and in the emulator so I don't think that's the issue.

Most helpful comment

Hello,

We are using the same react-native version and the same react-native-image-crop-picker version without having any problem. Nevertheless I've been struggling to make it run without crash.

I've manually installed the lib and only used react-native link

For ios what solved our problems was to include frameworks in the embedded binaries (see screen below). Also add react-native-image-crop-picker in the header path

xcode

For android the problem was caused by maven, the provided screen seemed to fix the implementation.

build.gradle

Good luck !

All 5 comments

also crash in iOS with Rn 0.59.2 , it seems caused by QBImage lib

Also crashes on Android with RN 0.57.8.

It should be installation issue. Maybe because I'm using react-native-navigation and my MainApplication extends NavigationApplication like that: public class MainApplication extends NavigationApplication? Someone using react-native-navigation here and has more experience with it?

facing the same issue. How can we add to android/ ios if we have the following file structure?
Screen Shot 2019-04-23 at 3 29 23 AM

Hello,

We are using the same react-native version and the same react-native-image-crop-picker version without having any problem. Nevertheless I've been struggling to make it run without crash.

I've manually installed the lib and only used react-native link

For ios what solved our problems was to include frameworks in the embedded binaries (see screen below). Also add react-native-image-crop-picker in the header path

xcode

For android the problem was caused by maven, the provided screen seemed to fix the implementation.

build.gradle

Good luck !

Was this page helpful?
0 / 5 - 0 ratings