{"action":"created","issue":{"url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/783","repository_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker","labels_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/783/comments","events_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/783/events","html_url":"https://github.com/ivpusic/react-native-image-crop-picker/issues/783","id":347276269,"node_id":"MDU6SXNzdWUzNDcyNzYyNjk=","number":783,"title":"com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry","user":{"login":"aspidvip","id":22605655,"node_id":"MDQ6VXNlcjIyNjA1NjU1","avatar_url":"https://avatars0.githubusercontent.com/u/22605655?v=4","gravatar_id":"","url":"https://api.github.com/users/aspidvip","html_url":"https://github.com/aspidvip","followers_url":"https://api.github.com/users/aspidvip/followers","following_url":"https://api.github.com/users/aspidvip/following{/other_user}","gists_url":"https://api.github.com/users/aspidvip/gists{/gist_id}","starred_url":"https://api.github.com/users/aspidvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspidvip/subscriptions","organizations_url":"https://api.github.com/users/aspidvip/orgs","repos_url":"https://api.github.com/users/aspidvip/repos","events_url":"https://api.github.com/users/aspidvip/events{/privacy}","received_events_url":"https://api.github.com/users/aspidvip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-03T06:35:44Z","updated_at":"2018-10-26T16:45:49Z","closed_at":null,"author_association":"NONE","body":"### Version\r\nTell us which versions you are using: \r\n\r\n- react-native-image-crop-picker v0.20.3\r\n- react-native v0.55.3\r\n\r\n### Platform\r\nTell us to which platform this issue is related\r\n\r\n\r\n- Android\r\n\r\n### Expected behaviour\r\n\r\n\r\n\r\n\r\n### Actual behaviour\r\n\r\n\r\n\r\n### Steps to reproduce\r\n\r\n1.\r\n\r\n2.\r\n\r\n3.\r\n\r\n### Attachments\r\n\r\n// stacktrace or any other useful debug info\r\n\r\n\r\nbuld\r\n```\r\nandroid {\r\n    compileSdkVersion 27\r\n    buildToolsVersion '27.0.3'\r\n\r\n    dexOptions {\r\n        jumboMode true\r\n    }\r\n\r\n\r\n    defaultConfig {\r\n        applicationId \"com.pub\"\r\n        minSdkVersion 16\r\n        multiDexEnabled true\r\n        targetSdkVersion 27\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n        vectorDrawables.useSupportLibrary = true //this add\r\n        ndk {\r\n            abiFilters \"armeabi-v7a\", \"x86\"\r\n        }\r\n    }\r\n    signingConfigs {\r\n        release {\r\n            if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {\r\n                storeFile file(MYAPP_RELEASE_STORE_FILE)\r\n                storePassword MYAPP_RELEASE_STORE_PASSWORD\r\n                keyAlias MYAPP_RELEASE_KEY_ALIAS\r\n                keyPassword MYAPP_RELEASE_KEY_PASSWORD\r\n            }\r\n        }\r\n    }\r\n    splits {\r\n        abi {\r\n            reset()\r\n            enable enableSeparateBuildPerCPUArchitecture\r\n            universalApk true  // If true, also generate a universal APK\r\n            include \"armeabi-v7a\", \"x86\"\r\n        }\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled enableProguardInReleaseBuilds\r\n            proguardFiles getDefaultProguardFile(\"proguard-android.txt\"), \"proguard-rules.pro\"\r\n            signingConfig signingConfigs.release\r\n        }\r\n    }\r\n    // applicationVariants are e.g. debug, release\r\n    applicationVariants.all { variant ->\r\n        variant.outputs.each { output ->\r\n            // For each separate APK per architecture, set a unique version code as described here:\r\n            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits\r\n            def versionCodes = [\"armeabi-v7a\":1, \"x86\":2]\r\n            def abi = output.getFilter(OutputFile.ABI)\r\n            if (abi != null) {  // null for the universal-debug, universal-release variants\r\n                output.versionCodeOverride =\r\n                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile project(':react-native-image-crop-picker')\r\n    compile fileTree(include: ['*.jar'], dir: 'libs')\r\n    compile 'com.android.support:appcompat-v7:25.3.1'\r\n    //compile 'com.android.support:appcompat-v7:23.0.1'\r\n    compile 'com.facebook.react:react-native:+'\r\n    // From node_modules\r\n    compile project(':react-native-navigation')\r\n    compile project(':react-native-vector-icons')\r\n    compile project(':rn-fetch-blob')\r\n    compile project(':react-native-photo-view')\r\n    compile project(':react-native-i18n')\r\n    compile project(':react-native-sqlite-storage')\r\n    compile project(':react-native-linear-gradient')\r\n    //compile project(':react-native-image-crop-picker')\r\n    compile project(':react-native-sound')\r\n    compile project(':react-native-open-settings')\r\n    compile project(':react-native-push-notification')\r\n    compile project(':react-native-device-info')\r\n    compile project(':react-native-text-input-mask')\r\n    compile project(':react-native-contacts')\r\n}\r\n\r\n// Run this once to be able to run the application with BUCK\r\n// puts all compile dependencies into folder libs for BUCK to use\r\ntask copyDownloadableDepsToLibs(type: Copy) {\r\n    from configurations.compile\r\n    into 'libs'\r\n}\r\n```\r\n\r\n\r\n\r\n```\r\n:app:processUniversalDebugResources\r\n:app:processX86DebugManifest UP-TO-DATE\r\n:app:processX86DebugResources UP-TO-DATE\r\n:app:generateDebugSources\r\n:app:incrementalDebugJavaCompilationSafeguard\r\n:app:javaPreCompileDebug\r\n:app:compileDebugJavaWithJavac\r\n:app:mergeDebugShaders\r\n:app:compileDebugShaders\r\n:app:generateDebugAssets\r\n:app:mergeDebugAssets\r\n:app:transformClassesWithJarMergingForDebug FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':app:transformClassesWithJarMergingForDebug'.\r\n> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/design/widget/CoordinatorLayout.class\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\nBUILD FAILED in 10s\r\n624 actionable tasks: 323 executed, 301 up-to-date\r\n\r\n```\r\n\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.5\r\n  Node: 10.6.0\r\n  Yarn: 1.7.0\r\n  npm: 6.1.0\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.1 Build version 9B55\r\n  Android Studio: 3.1 AI-173.4819257\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.3.1 => 16.3.1\r\n  react-native: ^0.55.3 => 0.55.4\r\n\r\n\r\n\r\nLove react-native-image-crop-picker? Please consider supporting our collective:\r\n👉  https://opencollective.com/react-native-image-crop-picker/donate\r\n"},"comment":{"url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/comments/433471587","html_url":"https://github.com/ivpusic/react-native-image-crop-picker/issues/783#issuecomment-433471587","issue_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/783","id":433471587,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQ3MTU4Nw==","user":{"login":"IcebergRage","id":2310332,"node_id":"MDQ6VXNlcjIzMTAzMzI=","avatar_url":"https://avatars1.githubusercontent.com/u/2310332?v=4","gravatar_id":"","url":"https://api.github.com/users/IcebergRage","html_url":"https://github.com/IcebergRage","followers_url":"https://api.github.com/users/IcebergRage/followers","following_url":"https://api.github.com/users/IcebergRage/following{/other_user}","gists_url":"https://api.github.com/users/IcebergRage/gists{/gist_id}","starred_url":"https://api.github.com/users/IcebergRage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcebergRage/subscriptions","organizations_url":"https://api.github.com/users/IcebergRage/orgs","repos_url":"https://api.github.com/users/IcebergRage/repos","events_url":"https://api.github.com/users/IcebergRage/events{/privacy}","received_events_url":"https://api.github.com/users/IcebergRage/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T16:45:49Z","updated_at":"2018-10-26T16:45:49Z","author_association":"NONE","body":"@aspidvip your way fix the problem !\r\nThe thing is we need to do this after an `yarn install` or a `npm install`.\r\nHow can we force this from the project, without changing the react-native-image-crop-picker's dependencies ?"}}
{"actor":{"display_login":"IcebergRage"}}