ivpusic / react-native-image-crop-picker

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

React Native build failed after adding react-native-image-crop-picker #922

Open rogerbright opened 5 years ago

rogerbright commented 5 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

react-native run-android should start the application without errors

Actual behaviour

FAILURE: Build failed with an exception.

Steps to reproduce

-- npm install --save react-native-image-crop-picker -- react-native link react-native-image-crop-picker -- Added to android/build.gradle: allprojects { repositories { mavenLocal() jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is ins url "$rootDir/../node_modules/react-native/android" } // for react-native-image-crop-picker maven { url 'https://maven.google.com' } maven { url "https://jitpack.io" } // -- google() } }

-- Added to android/app/build.gradle: defaultConfig { .. vectorDrawables.useSupportLibrary = true .. }

-- Added to android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />

Attachments

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

sprotymo commented 5 years ago

fixed -> https://github.com/ivpusic/react-native-image-crop-picker/issues/835

PavanTank4631 commented 4 years ago

vectorDrawables.useSupportLibrary = true it should be vectorDrawables.useSupportLibrary true

There is no '=' sign in app level gradle file.

bwoodlt commented 4 years ago

@rogerbright how did you fix this? I'm having exactly the same issue with message unable to find valid certification path to requested target

rogerbright commented 4 years ago

We instead use react-native-image-picker and react-native-image-resizer.

bwoodlt commented 4 years ago

Fixed mine. Issue was due to proxy setup and antivirus on my machine.