我有一个使用RN 0.62.2的react本机应用程序,它工作正常。当尝试使用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.你知道该怎么做吗?
发布于 2020-10-19 20:24:17
您是否尝试过在从jsc切换到hermes之后运行cd android && ./gradlew clean,就像文档建议的那样(https://reactnative.dev/docs/hermes)?
https://stackoverflow.com/questions/64426724
复制相似问题