我是靠谱客的博主 傻傻饼干,这篇文章主要介绍java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules,现在分享给大家,希望可以做个参考。

引入 扫码插件 barcode_scan 3. 0.1 Flutter报错

Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules jetified-protobuf-java-3.9.0.jar (com.google.protobuf:protobuf-java:3.9.0) and jetified-protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractMessageLite$Builder found in modules jetified-protobuf-java-3.9.0.jar (com.google.protobuf:protobuf-java:3.9.0) and jetified-protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream found in modules jetified-protobuf-java-3.9.0.jar (com.google.protobuf:protobuf-java:3.9.0) and jetified-protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
Duplicate class com.google.protobuf.AbstractParser found in modules jetified-protobuf-java-3.9.0.jar (com.google.protobuf:protobuf-java:3.9.0) and

解决办法降级barcode_scan

 barcode_scan: ^2.0.2

最后

以上就是傻傻饼干最近收集整理的关于java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules的全部内容,更多相关java.lang.RuntimeException:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(112)

评论列表共有 0 条评论

立即
投稿
返回
顶部