{"action":"created","issue":{"url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/54","labels_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/54/comments","events_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/54/events","html_url":"https://github.com/journeyapps/zxing-android-embedded/issues/54","id":81117393,"number":54,"title":"Error during including ","user":{"login":"yusdenis","id":5013268,"avatar_url":"https://avatars.githubusercontent.com/u/5013268?v=3","gravatar_id":"","url":"https://api.github.com/users/yusdenis","html_url":"https://github.com/yusdenis","followers_url":"https://api.github.com/users/yusdenis/followers","following_url":"https://api.github.com/users/yusdenis/following{/other_user}","gists_url":"https://api.github.com/users/yusdenis/gists{/gist_id}","starred_url":"https://api.github.com/users/yusdenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusdenis/subscriptions","organizations_url":"https://api.github.com/users/yusdenis/orgs","repos_url":"https://api.github.com/users/yusdenis/repos","events_url":"https://api.github.com/users/yusdenis/events{/privacy}","received_events_url":"https://api.github.com/users/yusdenis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-26T20:13:49Z","updated_at":"2015-05-27T15:30:52Z","closed_at":null,"body":"I tried to use the library on a personal project (zxing-android-embedded)\r\nThe configuration file Gradle (build.gradle) is:\r\ndependencies {\r\n    compile fileTree(include: ['*.jar'], dir: 'libs')\r\n    compile 'com.android.support:appcompat-v7:22.0.0'\r\n    compile 'com.android.support:cardview-v7:22.0.0'\r\n    compile 'com.google.android.gms:play-services:7.0.0'\r\n    compile project(':intro-slider-lib')\r\n    compile project(':parallax-effect-lib')\r\n    compile project(':odoo-rpc-v2')\r\n    compile(project(':zxing-android-embedded')) { transitive = true }\r\n}\r\n\r\n\r\nHowever, gives me this error when compiling.\r\nError:Execution failed for task ':app:dexDebug'.\r\n> com.android.ide.common.internal.LoggedErrorException: Failed to run command:\r\n\tD:\\dev\\tools\\android-sdk-windows\\build-tools\\21.1.2\\dx.bat --dex --no-optimize --output D:\\geomovil\\p13 delivery\\Odoo\\app\\build\\intermediates\\dex\\debug --input-list=D:\\geomovil\\p13 delivery\\Odoo\\app\\build\\intermediates\\tmp\\dex\\debug\\inputList.txt\r\nError Code:\r\n\t2\r\nOutput:\r\n\tUNEXPECTED TOP-LEVEL EXCEPTION:\r\n\tcom.android.dex.DexException: Multiple dex files define Lcom/google/zxing/client/android/camera/open/OpenCameraInterface;\r\n\t\tat com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)\r\n\t\tat com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)\r\n\t\tat com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)\r\n\t\tat com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)\r\n\t\tat com.android.dx.merge.DexMerger.merge(DexMerger.java:189)\r\n\t\tat com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)\r\n\t\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)\r\n\t\tat com.android.dx.command.dexer.Main.run(Main.java:246)\r\n\t\tat com.android.dx.command.dexer.Main.main(Main.java:215)\r\n\t\tat com.android.dx.command.Main.main(Main.java:106)"},"comment":{"url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/comments/105960629","html_url":"https://github.com/journeyapps/zxing-android-embedded/issues/54#issuecomment-105960629","issue_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/54","id":105960629,"user":{"login":"rkistner","id":94081,"avatar_url":"https://avatars.githubusercontent.com/u/94081?v=3","gravatar_id":"","url":"https://api.github.com/users/rkistner","html_url":"https://github.com/rkistner","followers_url":"https://api.github.com/users/rkistner/followers","following_url":"https://api.github.com/users/rkistner/following{/other_user}","gists_url":"https://api.github.com/users/rkistner/gists{/gist_id}","starred_url":"https://api.github.com/users/rkistner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkistner/subscriptions","organizations_url":"https://api.github.com/users/rkistner/orgs","repos_url":"https://api.github.com/users/rkistner/repos","events_url":"https://api.github.com/users/rkistner/events{/privacy}","received_events_url":"https://api.github.com/users/rkistner/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T15:30:52Z","updated_at":"2015-05-27T15:30:52Z","body":"Ok, there's nothing obvious there showing where the class would be defined a second time.\r\n\r\nSome fixes you can try:\r\n1. Clean the project\r\n2. Upgrade the Android Gradle plugin to the latest version, and use the latest version of build-tools.\r\n3. Try the solution here: http://stackoverflow.com/a/24025291/214837\r\n"}}