簡體   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