
[英]D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
[英]D8: Program type already present: androidx.renderscript.Allocation$1
我有一个使用 RN 0.62.2 的 react-native 应用程序,它运行正常。 尝试使用 hermes 而不是 JSC 时,在构建过程中出现以下错误:
D8: Program type already present: androidx.renderscript.Allocation$1
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Program type already present: androidx.renderscript.Allocation$1
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
知道该怎么做吗?
从 jsc 切换到 Hermes 后,您是否尝试过运行cd android && ./gradlew clean
,如文档所建议的( https://reactnative.dev/docs/hermes )?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.