You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Android dependency has a dependency on com.google.protobuf:protobuf-java and so results in a build error when the app also has a dependency on com.google.protobuf:protobuf-javalite (such as firestore). I can't find a way to workaround this.
I've tried various proposed solutions such as excluding protobuf-javalite dependency from the firestore dependency (this gives a VerifyError) and excluding protobuf-java from my app dependency, but nothing works. I've also tried forcing the version of protobuf-java or protobuf-javalite.
This is essentially blocking me from using libsql in my app. Can libsql depend on com.google.protobuf:protobuf-javalite instead?
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
Duplicate class com.google.protobuf.AbstractMessageLite$Builder found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
Duplicate class com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
Duplicate class com.google.protobuf.AbstractMessageLite$InternalOneOfEnum found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
Duplicate class com.google.protobuf.AbstractParser found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
Duplicate class com.google.protobuf.AbstractProtobufList found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
Duplicate class com.google.protobuf.AllocatedBuffer found in modules protobuf-java-3.24.0.jar -> protobuf-java-3.24.0 (com.google.protobuf:protobuf-java:3.24.0) and protobuf-javalite-3.25.1.jar -> protobuf-javalite-3.25.1 (com.google.protobuf:protobuf-javalite:3.25.1)
...(loads more lines like this)
The text was updated successfully, but these errors were encountered:
The Android dependency has a dependency on
com.google.protobuf:protobuf-java
and so results in a build error when the app also has a dependency oncom.google.protobuf:protobuf-javalite
(such as firestore). I can't find a way to workaround this.Apps cannot depend on both of those dependencies.
I've tried various proposed solutions such as excluding
protobuf-javalite
dependency from the firestore dependency (this gives aVerifyError
) and excludingprotobuf-java
from my app dependency, but nothing works. I've also tried forcing the version ofprotobuf-java
orprotobuf-javalite
.This is essentially blocking me from using libsql in my app. Can libsql depend on
com.google.protobuf:protobuf-javalite
instead?The text was updated successfully, but these errors were encountered: