{"action":"created","issue":{"url":"https://api.github.com/repos/mcxiaoke/android-volley/issues/69","labels_url":"https://api.github.com/repos/mcxiaoke/android-volley/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/mcxiaoke/android-volley/issues/69/comments","events_url":"https://api.github.com/repos/mcxiaoke/android-volley/issues/69/events","html_url":"https://github.com/mcxiaoke/android-volley/issues/69","id":94635584,"number":69,"title":"connectedCheck failed when used as module.","user":{"login":"double-y","id":6638312,"avatar_url":"https://avatars.githubusercontent.com/u/6638312?v=3","gravatar_id":"","url":"https://api.github.com/users/double-y","html_url":"https://github.com/double-y","followers_url":"https://api.github.com/users/double-y/followers","following_url":"https://api.github.com/users/double-y/following{/other_user}","gists_url":"https://api.github.com/users/double-y/gists{/gist_id}","starred_url":"https://api.github.com/users/double-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/double-y/subscriptions","organizations_url":"https://api.github.com/users/double-y/orgs","repos_url":"https://api.github.com/users/double-y/repos","events_url":"https://api.github.com/users/double-y/events{/privacy}","received_events_url":"https://api.github.com/users/double-y/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T04:22:54Z","updated_at":"2015-07-13T04:27:18Z","closed_at":null,"body":"I used this library as module like this.\r\n```\r\ndependencies {\r\n    compile project(':modules:volley')\r\n}\r\n```\r\n\r\nBut when I execute `$ ./gradlew connectedCheck` an error occurred.\r\n```\r\nWARNING: Dependency commons-logging:commons-logging:1.1.1 is ignored for debugUnitTest as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\nWARNING: Dependency org.apache.httpcomponents:httpclient:4.0.3 is ignored for debugUnitTest as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\nWARNING: Dependency commons-logging:commons-logging:1.1.1 is ignored for releaseUnitTest as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\nWARNING: Dependency org.apache.httpcomponents:httpclient:4.0.3 is ignored for releaseUnitTest as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\n:app:preBuild UP-TO-DATE\r\n:app:preDebugBuild UP-TO-DATE\r\n:app:compileDebugNdk UP-TO-DATE\r\n:app:checkDebugManifest\r\n:app:preReleaseBuild UP-TO-DATE\r\n:modules:volley:compileLint\r\n:modules:volley:copyReleaseLint UP-TO-DATE\r\n:modules:volley:mergeReleaseProguardFiles UP-TO-DATE\r\n:modules:volley:preBuild UP-TO-DATE\r\n:modules:volley:preReleaseBuild UP-TO-DATE\r\n:modules:volley:checkReleaseManifest\r\n:modules:volley:prepareReleaseDependencies\r\n:modules:volley:compileReleaseAidl UP-TO-DATE\r\n:modules:volley:compileReleaseRenderscript UP-TO-DATE\r\n:modules:volley:generateReleaseBuildConfig UP-TO-DATE\r\n:modules:volley:generateReleaseAssets UP-TO-DATE\r\n:modules:volley:mergeReleaseAssets UP-TO-DATE\r\n:modules:volley:generateReleaseResValues UP-TO-DATE\r\n:modules:volley:generateReleaseResources UP-TO-DATE\r\n:modules:volley:packageReleaseResources UP-TO-DATE\r\n:modules:volley:processReleaseManifest UP-TO-DATE\r\n:modules:volley:processReleaseResources UP-TO-DATE\r\n:modules:volley:generateReleaseSources UP-TO-DATE\r\n:modules:volley:compileReleaseJava UP-TO-DATE\r\n:modules:volley:processReleaseJavaRes UP-TO-DATE\r\n:modules:volley:packageReleaseJar UP-TO-DATE\r\n:modules:volley:compileReleaseNdk UP-TO-DATE\r\n:modules:volley:packageReleaseJniLibs UP-TO-DATE\r\n:modules:volley:packageReleaseLocalJar UP-TO-DATE\r\n:modules:volley:packageReleaseRenderscript UP-TO-DATE\r\n:modules:volley:bundleRelease UP-TO-DATE\r\n:app:prepareComAfollestadMaterialDialogs0755Library UP-TO-DATE\r\n:app:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE\r\n:app:prepareComAndroidSupportCardviewV72220Library UP-TO-DATE\r\n:app:prepareComAndroidSupportRecyclerviewV72220Library UP-TO-DATE\r\n:app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE\r\n:app:prepareComEchoHolographlibrary10Library UP-TO-DATE\r\n:app:prepareComFortysevendegSwipelistviewSwipelistview10SNAPSHOTLibrary UP-TO-DATE\r\n:app:prepareComGetbaseFloatingactionbutton190Library UP-TO-DATE\r\n:app:prepareComGithubGanfraMaterialSpinner110Library UP-TO-DATE\r\n:app:prepareComGithubNavasmdcMaterialDesign15Library UP-TO-DATE\r\n:app:prepareComMcxiaokeVolleyVolley1016Library UP-TO-DATE\r\n:app:prepareComRengwuxianMaterialedittextLibrary213Library UP-TO-DATE\r\n:app:prepareComWdullaerMaterialdatetimepicker131Library UP-TO-DATE\r\n:app:prepareDebugDependencies\r\n:app:compileDebugAidl UP-TO-DATE\r\n:app:compileDebugRenderscript UP-TO-DATE\r\n:app:generateDebugBuildConfig UP-TO-DATE\r\n:app:generateDebugAssets UP-TO-DATE\r\n:app:mergeDebugAssets UP-TO-DATE\r\n:app:generateDebugResValues UP-TO-DATE\r\n:app:generateDebugResources UP-TO-DATE\r\n:app:mergeDebugResources UP-TO-DATE\r\n:app:processDebugManifest UP-TO-DATE\r\n:app:processDebugResources UP-TO-DATE\r\n:app:generateDebugSources UP-TO-DATE\r\n:app:compileDebugJava UP-TO-DATE\r\n:app:preDexDebug UP-TO-DATE\r\n:app:dexDebug UP-TO-DATE\r\n:app:processDebugJavaRes UP-TO-DATE\r\n:app:validateDebugSigning\r\n:app:packageDebug UP-TO-DATE\r\n:app:zipalignDebug UP-TO-DATE\r\n:app:assembleDebug UP-TO-DATE\r\n:app:preDebugAndroidTestBuild UP-TO-DATE\r\n:app:compileDebugAndroidTestNdk UP-TO-DATE\r\n:app:prepareDebugAndroidTestDependencies\r\n:app:compileDebugAndroidTestAidl UP-TO-DATE\r\n:app:processDebugAndroidTestManifest UP-TO-DATE\r\n:app:compileDebugAndroidTestRenderscript UP-TO-DATE\r\n:app:generateDebugAndroidTestBuildConfig UP-TO-DATE\r\n:app:generateDebugAndroidTestAssets UP-TO-DATE\r\n:app:mergeDebugAndroidTestAssets UP-TO-DATE\r\n:app:generateDebugAndroidTestResValues UP-TO-DATE\r\n:app:generateDebugAndroidTestResources UP-TO-DATE\r\n:app:mergeDebugAndroidTestResources UP-TO-DATE\r\n:app:processDebugAndroidTestResources UP-TO-DATE\r\n:app:generateDebugAndroidTestSources UP-TO-DATE\r\n:app:compileDebugAndroidTestJava UP-TO-DATE\r\n:app:preDexDebugAndroidTest UP-TO-DATE\r\n:app:dexDebugAndroidTest UP-TO-DATE\r\n:app:processDebugAndroidTestJavaRes UP-TO-DATE\r\n:app:packageDebugAndroidTest UP-TO-DATE\r\n:app:assembleDebugAndroidTest UP-TO-DATE\r\n:app:connectedAndroidTest\r\n:app:connectedCheck\r\n:modules:volley:copyDebugLint UP-TO-DATE\r\n:modules:volley:mergeDebugProguardFiles UP-TO-DATE\r\n:modules:volley:preDebugBuild UP-TO-DATE\r\n:modules:volley:checkDebugManifest\r\n:modules:volley:prepareDebugDependencies\r\n:modules:volley:compileDebugAidl UP-TO-DATE\r\n:modules:volley:compileDebugRenderscript UP-TO-DATE\r\n:modules:volley:generateDebugBuildConfig UP-TO-DATE\r\n:modules:volley:generateDebugAssets UP-TO-DATE\r\n:modules:volley:mergeDebugAssets UP-TO-DATE\r\n:modules:volley:generateDebugResValues UP-TO-DATE\r\n:modules:volley:generateDebugResources UP-TO-DATE\r\n:modules:volley:packageDebugResources UP-TO-DATE\r\n:modules:volley:processDebugManifest UP-TO-DATE\r\n:modules:volley:processDebugResources UP-TO-DATE\r\n:modules:volley:generateDebugSources UP-TO-DATE\r\n:modules:volley:compileDebugJava UP-TO-DATE\r\n:modules:volley:processDebugJavaRes UP-TO-DATE\r\n:modules:volley:packageDebugJar UP-TO-DATE\r\n:modules:volley:compileDebugNdk UP-TO-DATE\r\n:modules:volley:packageDebugJniLibs UP-TO-DATE\r\n:modules:volley:packageDebugLocalJar UP-TO-DATE\r\n:modules:volley:packageDebugRenderscript UP-TO-DATE\r\n:modules:volley:bundleDebug UP-TO-DATE\r\n:modules:volley:assembleDebug UP-TO-DATE\r\n:modules:volley:preDebugAndroidTestBuild UP-TO-DATE\r\n:modules:volley:compileDebugAndroidTestNdk UP-TO-DATE\r\n:modules:volley:prepareComAndroidSupportTestEspressoEspressoCore20Library UP-TO-DATE\r\n:modules:volley:prepareComAndroidSupportTestEspressoEspressoIdlingResource20Library UP-TO-DATE\r\n:modules:volley:prepareComAndroidSupportTestTestingSupportLib01Library UP-TO-DATE\r\n:modules:volley:prepareDebugAndroidTestDependencies\r\n:modules:volley:compileDebugAndroidTestAidl UP-TO-DATE\r\n:modules:volley:processDebugAndroidTestManifest UP-TO-DATE\r\n:modules:volley:compileDebugAndroidTestRenderscript UP-TO-DATE\r\n:modules:volley:generateDebugAndroidTestBuildConfig UP-TO-DATE\r\n:modules:volley:generateDebugAndroidTestAssets UP-TO-DATE\r\n:modules:volley:mergeDebugAndroidTestAssets UP-TO-DATE\r\n:modules:volley:generateDebugAndroidTestResValues UP-TO-DATE\r\n:modules:volley:generateDebugAndroidTestResources UP-TO-DATE\r\n:modules:volley:mergeDebugAndroidTestResources UP-TO-DATE\r\n:modules:volley:processDebugAndroidTestResources UP-TO-DATE\r\n:modules:volley:generateDebugAndroidTestSources UP-TO-DATE\r\n:modules:volley:compileDebugAndroidTestJava UP-TO-DATE\r\n:modules:volley:preDexDebugAndroidTest UP-TO-DATE\r\n:modules:volley:dexDebugAndroidTest UP-TO-DATE\r\n:modules:volley:processDebugAndroidTestJavaRes UP-TO-DATE\r\n:modules:volley:validateDebugSigning\r\n:modules:volley:packageDebugAndroidTest\r\nError: duplicate files during packaging of APK /Users/yasudayousuke/Documents/job/finc/FiNC-Android/modules/volley/build/outputs/apk/volley-debug-androidTest-unaligned.apk\r\n\tPath in archive: LICENSE.txt\r\n\tOrigin 1: /Users/yasudayousuke/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/64417b3bafdecd366afa514bd5beeae6c1f85ece/junit-dep-4.10.jar\r\n\tOrigin 2: /Users/yasudayousuke/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.1/860340562250678d1a344907ac75754e259cdb14/hamcrest-core-1.1.jar\r\nYou can ignore those files in your build.gradle:\r\n\tandroid {\r\n\t  packagingOptions {\r\n\t    exclude 'LICENSE.txt'\r\n\t  }\r\n\t}\r\n:modules:volley:packageDebugAndroidTest FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':modules:volley:packageDebugAndroidTest'.\r\n> Duplicate files copied in APK LICENSE.txt\r\n  \tFile 1: /Users/yasudayousuke/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/64417b3bafdecd366afa514bd5beeae6c1f85ece/junit-dep-4.10.jar\r\n  \tFile 2: /Users/yasudayousuke/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/64417b3bafdecd366afa514bd5beeae6c1f85ece/junit-dep-4.10.jar\r\n\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.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 18.399 secs\r\n```\r\n\r\nthis repository is cloned as `projectRoot/modules/volley`."},"comment":{"url":"https://api.github.com/repos/mcxiaoke/android-volley/issues/comments/120807859","html_url":"https://github.com/mcxiaoke/android-volley/issues/69#issuecomment-120807859","issue_url":"https://api.github.com/repos/mcxiaoke/android-volley/issues/69","id":120807859,"user":{"login":"mcxiaoke","id":464330,"avatar_url":"https://avatars.githubusercontent.com/u/464330?v=3","gravatar_id":"","url":"https://api.github.com/users/mcxiaoke","html_url":"https://github.com/mcxiaoke","followers_url":"https://api.github.com/users/mcxiaoke/followers","following_url":"https://api.github.com/users/mcxiaoke/following{/other_user}","gists_url":"https://api.github.com/users/mcxiaoke/gists{/gist_id}","starred_url":"https://api.github.com/users/mcxiaoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcxiaoke/subscriptions","organizations_url":"https://api.github.com/users/mcxiaoke/orgs","repos_url":"https://api.github.com/users/mcxiaoke/repos","events_url":"https://api.github.com/users/mcxiaoke/events{/privacy}","received_events_url":"https://api.github.com/users/mcxiaoke/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T04:27:18Z","updated_at":"2015-07-13T04:27:18Z","body":"@double-y as the error messages said: \"Duplicate files copied in APK LICENSE.txt \"\r\n\r\nadd these to your build.gradle to fix it:\r\n\r\n```\r\npackagingOptions {\r\n    exclude 'META-INF/DEPENDENCIES.txt'\r\n    exclude 'META-INF/LICENSE.txt'\r\n    exclude 'META-INF/NOTICE.txt'\r\n    exclude 'META-INF/NOTICE'\r\n    exclude 'META-INF/LICENSE'\r\n    exclude 'META-INF/DEPENDENCIES'\r\n    exclude 'META-INF/notice.txt'\r\n    exclude 'META-INF/license.txt'\r\n    exclude 'META-INF/dependencies.txt'\r\n    exclude 'META-INF/LGPL2.1'\r\n}\r\n```\r\n\r\nto android {}"}}