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

Could not resolve all dependencies for configuration ':react-native-image-crop-picker:_debugPublishCopy'. #566

Closed tanghua93 closed 6 years ago

tanghua93 commented 6 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Actual behaviour

FAILURE: Build failed with an exception.

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 13.033 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html

Attachments

// stacktrace or any other useful debug info

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

timhorwood commented 6 years ago

I am also getting this issue.

I have a reference to maven already in my project/build.gradle which has been suggested as a solution to this issue previous.

maven { url "$rootDir/../node_modules/react-native/android" }

I tried another solution which was to include multiple maven references

maven { url "https://jitpack.io" } maven { url "$rootDir/../node_modules/react-native/android" }

but this caused another issue on build regarding PickerPackage not being found.

Thanks,

ivpusic commented 6 years ago

as stated in the readme file, to the project build.gradle add

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
kriswuwenxiang commented 6 years ago

allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } ==》cut no ice

image image @ivpusic Thanks,

elKrionoah commented 6 years ago

@kriswuwenxiang I cause another error u.u screen shot 2018-01-31 at 15 19 24