【问题标题】:Duplicate Error while generating signed release apk生成签名发布 apk 时出现重复错误
【发布时间】:2023-03-13 17:50:01
【问题描述】:

我正在尝试生成 Release SignedApk 但没有成功。但在调试模式下,它工作正常。

在发布模式下会出现以下错误:-

[raw/node_modules_reactnativevectoricons_glyphmaps_feather] /Users/sourav/backup/STMSParent/android/app/src/main/res/raw/node_modules_reactnativevectoricons_glyphmaps_feather.json [raw/node_modules_reactnativevectoricons_glyphmaps_feather] /Users/sourav/backup/STMSParent/android/app/build/generated/res/react/release/raw/node_modules_reactnativevectoricons_glyphmaps_feather.json: Error: Duplicate resources [raw/app] /Users/sourav/backup/STMSParent/android/app/src/main/res/raw/app.json [raw/app] /Users/sourav/backup/STMSParent/android/app/build/generated/res/react/release/raw/app.json: Error: Duplicate resources [raw/node_modules_reactnativevectoricons_glyphmaps_fontawesome] /Users/sourav/backup/STMSParent/android/app/src/main/res/raw/node_modules_reactnativevectoricons_glyphmaps_fontawesome.json [raw/node_modules_reactnativevectoricons_glyphmaps_fontawesome]

提前致谢

【问题讨论】:

    标签: android react-native react-native-android


    【解决方案1】:

    转到此文件夹

    ~/android/app/src/main/res/raw/

    删除里面的所有文件。

    现在试试

    $  cd android
    $ ./gradlew clean
    $ ./gradlew bundleRelease
    

    这对我有用...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-28
      • 2020-08-02
      • 2016-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-05
      相关资源
      最近更新 更多