showing results for - "error duplicate resources react native"
Dario
20 Aug 2020
1rm -rf ./android/app/src/main/res/drawable-*
2
3rm -rf ./android/app/src/main/res/raw
4
5OR
6
7add following code to node_modules/react-native/react.gradle
8
9doLast {
10  def moveFunc = { resSuffix ->
11  File originalDir = file("$buildDir/generated/res/react/release/drawable-${resSuffix}");
12  if (originalDir.exists()) {
13  File destDir = file("$buildDir/../src/main/res/drawable-${resSuffix}");
14  ant.move(file: originalDir, tofile: destDir);
15  }
16  }
17  moveFunc.curry("ldpi").call()
18  moveFunc.curry("mdpi").call()
19  moveFunc.curry("hdpi").call()
20  moveFunc.curry("xhdpi").call()
21  moveFunc.curry("xxhdpi").call()
22  moveFunc.curry("xxxhdpi").call()
23}
Mia
23 Aug 2017
1rm -rf ./android/app/src/main/res/drawable-*
2
3rm -rf ./android/app/src/main/res/raw
4
queries leading to this page
react native 3a error 3a duplicate resourcesduplicate resources json files react nativereact native duplicate resources error 0 63generated 2fres 2freact 2frelease 2fraw 2fnode modules currencyformatter currencies json 3a error 3a duplicate resourcesduplicate resources react native build androiderror 3a duplicate resources android apk react nativerecat native error 3a duplicate resourcesreact native android build error 3a duplicate resourceserror 3a duplicate resources react native androidassemblerelease error 3a duplicate resourcesreact native duplicate resources error without drawablesexecution failed for task 27 3aapp 3amergereleaseresources 27 duplicate resourcesreact native android duplicate resourceserror 3a duplicate resources react native buildreact native build failed duplicate resourcesduplicate resources react native androidduplicate resources error in react nativereact native duplicate resourcesfailure 3a build failed with an exception 2a what went wrong 3a execution failed for task 27 3aapp 3amergereleaseresources 27 duplicatebuild raw node modules duplicateduplicate assest react nativereact 2frelease 2fraw 2fsrc components common iconfont iconfont json 3a error 3a duplicate resourcesreact native release apk duplicate resourceserror duplicate resources react native 0 63resource and asset merger 3a duplicate resourceserror 3a duplicate resources react nativeapp i18n languages no json duplicate resourcesreact native release build error duplicate resourcesreact native duplicate resourcesapp 3amergedebugresources 2c duplicate resourcesreact native error duplicate resourceserror 3a duplicate resources react native androidreact native vector icons duplicate resourcesduplicate resources 3aapp 3amergereleaseresources duplicate resourcesduplicate resources react native androidduplicate data in react native androidreact native build apk duplicqte resourcesapp 2fsrc 2fmain 2fres 2fdrawable path not found react nativereact native assemblerelease error duplicate resourcesmergereleaseresources duplicate resources issueduplicate resources error in android react nativeassemblerelease not successful duplicate resourceduplicate resources react nativeerror 3a duplicate resources rwact nativeexpo eject release apk duplicaeresources errorerror 3a duplicate resources react ntaive run androidduplicate resources react nativereact native how to find duplicate resourceserror 3a duplicate resources in react nativevariant release react native error duplicate resourcesduplicate resources android studio errorreact native release error duplicate resourcesreact native duplicate resource 3a error 3a duplicate resources android react nativereact native duplicate resources androidbuilding apk duplicate resourceserror duplicate resources react native release buildduplicate resources kotlindolast react nativesource and asset merger 3a duplicate resourcesduplicate resources galioextra json in release builderror 3a duplicate resources react nativeerror 3a duplicate resources react native releaseduplicate resources android studio react nativefix duplicate resources in react nativereact native build android error duplicate resourcesreact app duplicate errorduplicate resources error while release react nativereact native app json 3a error 3a duplicate resourcesreact native android trace duplicate resourcesdrawable mdpi drawable mdpi v4 duplicate error react native expo releasereact native bundle duplicate resourcesreact native build fail duplicate resourcesreact native export apk error 3a duplicate resourcesapp duplicate resources androiderror 3a duplicate resourcesdeliver release apk react native 0 60task 3aapp 3amergereleaseresources failed drawable xxxhdpi v4duplicate resource error in react native 5cduplicate resources react native iosduplicate resource error in react nativereact native error 3a duplicate resourceserror build duplicate resource react nativereact native android release error duplicate resourceserror duplicate resources react native androidbuild failed react native error 3a duplicate resourcesduplicate resources android react nativereact native run android release duplicate resourcesduplicate resource assemblereleasedrawable android duplicatereact native android duplicated assetsreact native resource and asset merger 3a duplicate resourceserror duplicate resources react nativereact native json 3a error 3a duplicate resourcesresource and asset merger duplicate resourcesdelete drawable react nativegenerated xml error duplicate resourcesreact native android build error duplicate resourcesreact native platform duplicate codeexecution failed for task 27 3aapp 3amergereleaseresources 27 error 3a duplicate resourcesduplicate resources error in android studio drawable and valuesduplicate resources android studio react native app jsonerror 3a duplicate resources react android buildbuild release apk react native error 3a duplicate resourcesduplicate resources in react nativereact native resource duplicate androiderror 3a duplicate resources 5binteger 2freact native inspector proxy port 5dreact native android error 3a duplicate resourcesduplicate resources errordrawable mdpi v4 duplicate resourcesgradlew assemblerelease duplicate resourceserror 3a duplicate resources react native build failedreact native release duplicate resourceserror duplicate resources react native