生成签名发行APK时出现重复错误

时间:2019-09-24 14:39:26

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

我正在尝试生成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]

预先感谢

1 个答案:

答案 0 :(得分:1)

转到此文件夹

  

〜/ android / app / src / main / res / raw /

删除其中的所有文件。

现在尝试

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

这对我有用...