Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than one file was found with OS independent path 'error_prone/Annotations.gwt.xml #39

Closed
mrcool17 opened this issue Oct 30, 2020 · 2 comments

Comments

@mrcool17
Copy link

More than one file was found with OS independent path 'error_prone/Annotations.gwt.xml

@IanGClifton
Copy link
Contributor

Can you clarify which project you're building? Sounds like it may be similar to googlesamples/androidtv-sample-inputs#49, but I don't see the same problem building any of the projects with Android Studio 4.1

@changxiangzhong
Copy link

This is a cool Japanese guy. His solution works for me. Please refer to this link.

Here's the patch

chang@zbook:~/git-root/androidtv-sample-inputs$ git diff
diff --git a/app/build.gradle b/app/build.gradle
index 4651b79..f380054 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -18,6 +18,13 @@ android {
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
         }
     }
+
+    packagingOptions {
+        exclude 'error_prone/Annotations.gwt.xml'
+        exclude 'third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml'
+        exclude 'third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml'
+        exclude 'jsr305_annotations/Jsr305_annotations.gwt.xml'
+    }
 }
 
 ext {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants