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

问题描述

我有一个使用RN 0.62.2的反应本机应用程序,该应用程序正常工作。 尝试使用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.

知道要做什么吗?

解决方法

您是否按照文档建议(https://reactnative.dev/docs/hermes)从jsc切换到hermes后尝试运行# load python 3.8 dependencies using slim debian 10 image. FROM python:3.8-slim-buster # build variables. ENV DEBIAN_FRONTEND noninteractive # install Microsoft SQL Server requirements. ENV ACCEPT_EULA=Y RUN apt-get update -y && apt-get update \ && apt-get install -y --no-install-recommends curl gcc g++ gnupg unixodbc-dev # Add SQL Server ODBC Driver 17 for Ubuntu 18.04 RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ && curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list \ && apt-get update \ && apt-get install -y --no-install-recommends --allow-unauthenticated msodbcsql17 mssql-tools \ && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \ && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc # upgrade pip and install requirements. COPY /requirements.txt /requirements.txt RUN pip install --upgrade pip RUN pip install -r /requirements.txt # clean the install. RUN apt-get -y clean # copy all files to /app directory and move into directory. COPY . /app WORKDIR /app ENTRYPOINT ["some","python","command"]

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...