:app:packageRelease
Error: duplicate files during packaging of APK /Users/whatever/Development/whatever/app/build/apk/app-release-unaligned.apk
Path in archive: META-INF/LICENSE.txt
Origin 1: /Users/whatever/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar
Origin 2: /Users/whatever/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.1/905075e6c80f206bbe6cf1e809d2caa69f420c76/commons-lang3-3.1.jar
:app:packageRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageRelease'.
> Duplicate files copied in APK META-INF/LICENSE.txt
File 1: /Users/whatever/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar
File 2: /Users/whatever/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar
find ~/.gradle/caches/ -iname "*.jar" -exec zip -d '{}' 'META-INF/NOTICE*' \; find ~/.gradle/caches/ -iname "*.jar" -exec zip -d '{}' 'META-INF/LICENSE*' \;
--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Error: duplicate files during packaging of APK /Users/traun/Development/couchbase-lite-android/CouchbaseLiteProject/CBLite/build/apk/CBLite-debug-test-unaligned.apkPath in archive: META-INF/ASL2.0Origin 1: /Users/traun/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-mapper-asl/1.9.2/95400a7922ce75383866eb72f6ef4a7897923945/jackson-mapper-asl-1.9.2.jarOrigin 2: /Users/traun/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-core-asl/1.9.2/8493982bba1727106d767034bd0d8e77bc1931a9/jackson-core-asl-1.9.2.jar
You can ignore those files in your build.gradle:android {packagingOptions {
exclude 'META-INF/ASL2.0'}}:CBLite:packageDebugTest FAILED
* Where:Build file '/Users/traun/Development/couchbase-lite-android/CouchbaseLiteProject/CBLite/build.gradle' line: 38* What went wrong:A problem occurred evaluating project ':CBLite'.> Could not find method packagingOptions() for arguments [build_7e8h4gb29m24saphgjk26o3v1r$_run_closure3_closure10@6c80d028] on project ':CBLite'.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED
Hello,When I start using gradle 0.7.3 and apply this workaround I start getting the error: Lint: problems would in abortOnError = false. Aborting build. There was a workaround suggested for that, but it starts down a long road of error messages and workarounds that never get anywhere good.