首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >D8:程序类型已存在: androidx.renderscript.Allocation$1

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

Stack Overflow用户
提问于 2020-10-19 19:48:25
回答 1查看 194关注 0票数 0

我有一个使用RN 0.62.2的react本机应用程序,它工作正常。当尝试使用hermes而不是JSC时,我在构建过程中遇到以下错误:

代码语言:javascript
复制
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.

你知道该怎么做吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-10-19 20:24:17

您是否尝试过在从jsc切换到hermes之后运行cd android && ./gradlew clean,就像文档建议的那样(https://reactnative.dev/docs/hermes)?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64426724

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档