Instrumentation Test compile failed by protobuf classes duplication
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- mobile, testing-qa
Research direction
No repository files or tests are named. Start by reproducing the instrumentation build with androidx.test.espresso:espresso-contrib:3.5.1 and inspect the dependency graph for protobuf-javalite-3.22.2 and protobuf-lite-3.0.1; done means the instrumentation test compiles without duplicate protobuf classes.
Written by the indexing model from the issue text.
Description
Description
- I'm using protobuf/gRPC on my android app and I tried to use androidx espresso, but build was failed.
- Since Protobuf 3.8.0, it introduced new javalite runtime (com.google.protobuf:protobuf-javalite), but espresso still uses too old javalite runtime(com.google.protobuf:protobuf-lite)
Steps to Reproduce
- N/A
Expected Results
- Compile unittest without error
Actual Results
- Gradle shows following error message.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractMessageLite$Builder found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractParser found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractProtobufList found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.BooleanArrayList found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteBufferWriter found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteOutput found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$1 found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$ArraysByteArrayCopier found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$BoundedByteString found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$ByteArrayCopier found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$ByteIterator found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$CodedBuilder found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$LeafByteString found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$LiteralByteString found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$Output found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.ByteString$SystemByteArrayCopier found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.CodedInputStream found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.CodedOutputStream found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.CodedOutputStream$1 found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javalite:3.22.2) and protobuf-lite-3.0.1 (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.CodedOutputStream$AbstractBufferedEncoder found in modules protobuf-javalite-3.22.2 (com.google.protobuf:protobuf-javal…
AndroidX Test and Android OS Versions
- androidx.test.espresso:espresso-contrib:3.5.1
- OS : Any
Link to a public git repo demonstrating the problem:
- N/A
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 342
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/android-test
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
android/android-test#681 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
android/android-test#2507 · 1 comment ·
-
ξεκσνδξδ Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
android/android-test#2499 ·
-
ησξξσ Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
android/android-test#2498 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
android/android-test#2473 ·
All issues in android/android-test
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·