androidtv-sample-inputs icon indicating copy to clipboard operation
androidtv-sample-inputs copied to clipboard

Unable to buil sample

Open giaur500 opened this issue 5 years ago • 4 comments

I'm getting error message:

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

giaur500 avatar Mar 02 '20 07:03 giaur500

Have you looked for potential solutions to the error message like this StackOverflow question.

Fleker avatar Mar 02 '20 17:03 Fleker

Same issue, based on the link @Fleker provided, I was able to build it by adding : packagingOptions { pickFirst 'error_prone/Annotations.gwt.xml' pickFirst 'third_party/java_src/error_prone/project/annotations/*' pickFirst 'jsr305_annotations/*' } to the build.gradle No idea what is the root cause though.

turlututututu avatar Mar 05 '20 13:03 turlututututu

Same issue, based on the link @Fleker provided, I was able to build it by adding : packagingOptions { pickFirst 'error_prone/Annotations.gwt.xml' pickFirst 'third_party/java_src/error_prone/project/annotations/*' pickFirst 'jsr305_annotations/*' } to the build.gradle No idea what is the root cause though.

To solve this, in the library build.gradle change the

implementation "com.google.android.gms:play-services-ads:$playServicesVersion"

TO

implementation "com.google.android.gms:play-services-ads:18.1.1"

ghost avatar Mar 07 '20 19:03 ghost

Same issue with Android Studio 4.1.1 (macOS). The "18.1.1" change suggestion above works around that issue, but another issue is hit "error: resource android:attr/ttcIndex not found."

dwhea avatar Dec 09 '20 23:12 dwhea