Skip to content

Can't use expo-image-crop-tool with expo-image-picker (duplicate Android-Image-Cropper) #10

@maxximee

Description

@maxximee

Tried using these versions like in the example:
"expo-image-picker": "16.1.4"
with :
"expo-image-crop-tool": "0.3.0",
But that fails:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.canhub.cropper.BitmapCroppingWorkerJob found in modules Android-Image-Cropper-4.3.1.aar -> jetified-Android-Image-Cropper-4.3.1-runtime (com.github.CanHub:Android-Image-Cropper:4.3.1) and android-image-cropper-4.6.0.aar -> jetified-android-image-cropper-4.6.0-runtime (com.vanniktech:android-image-cropper:4.6.0)

It seem they can't work together:
com.vanniktech:android-image-cropper:4.6.0
--- project :expo-image-crop-tool
--- project :expo
--- debugRuntimeClasspath

com.github.CanHub:Android-Image-Cropper:4.3.1
--- project :expo-image-picker
--- project :expo
--- debugRuntimeClasspath

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions