From 928e017f0a0b6dbd0b3729e82fed8a47a47b0dd0 Mon Sep 17 00:00:00 2001 From: Brayan Oliveira <69634269+brayandso@users.noreply.github.com> Date: Fri, 16 Jan 2026 16:39:16 -0300 Subject: [PATCH] fix(libanki-testutils): more than one META-INF/LICENSE I got this error while rebuilding the project. to fix it, I copied the same exclusions of :testlib --- libanki/testutils/build.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libanki/testutils/build.gradle.kts b/libanki/testutils/build.gradle.kts index 7d5d9fd6acd4..dd485751bbe3 100644 --- a/libanki/testutils/build.gradle.kts +++ b/libanki/testutils/build.gradle.kts @@ -39,6 +39,15 @@ android { compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 + + packaging { + resources { + // testutils is not compiled into the public apk + excludes += "META-INF/DEPENDENCIES" + excludes += "META-INF/LICENSE.md" + excludes += "META-INF/LICENSE-notice.md" + } + } } kotlin { compilerOptions {