繁体   English   中英

D8:程序类型已经存在:androidx.renderscript.Allocation$1

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM