Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react native duplicate resources: Android

rm -rf ./android/app/src/main/res/drawable-*

rm -rf ./android/app/src/main/res/raw

OR

add following code to node_modules/react-native/react.gradle

doLast {
  def moveFunc = { resSuffix ->
  File originalDir = file("$buildDir/generated/res/react/release/drawable-${resSuffix}");
  if (originalDir.exists()) {
  File destDir = file("$buildDir/../src/main/res/drawable-${resSuffix}");
  ant.move(file: originalDir, tofile: destDir);
  }
  }
  moveFunc.curry("ldpi").call()
  moveFunc.curry("mdpi").call()
  moveFunc.curry("hdpi").call()
  moveFunc.curry("xhdpi").call()
  moveFunc.curry("xxhdpi").call()
  moveFunc.curry("xxxhdpi").call()
}
Comment

error duplicate resources react native

rm -rf ./android/app/src/main/res/drawable-*

rm -rf ./android/app/src/main/res/raw
Comment

PREVIOUS NEXT
Code Example
Javascript :: ERROR in ./server/server.js Module build failed (from ./node_modules/babel-loader/lib/index.js): 
Javascript :: iterate object javascript 
Javascript :: disable right click javascript 
Javascript :: regex password uppercase lowercase number special character 
Javascript :: javascript random number between 1 and 10 
Javascript :: install latest npm for react 
Javascript :: authfunctions react 
Javascript :: joi phone number validation 
Javascript :: node log without newline 
Javascript :: jquery close bootstrap model 
Javascript :: is advanced functions harder than calculus 
Javascript :: js date add 1 day 
Javascript :: remove and add active class with jquery 
Javascript :: document ready function 
Javascript :: react js installation 
Javascript :: jquery script tag source google 
Javascript :: error:03000086:digital envelope routines::initialization error 
Javascript :: get every member of a server discord js 
Javascript :: automatically scroll to bottom of page 
Javascript :: update nodejs 
Javascript :: react empty space 
Javascript :: javascript repeat each second 
Javascript :: javascript code for year in html 
Javascript :: javascript function to generate random alphanumeric string 
Javascript :: best way to detect mobile device jquery 
Javascript :: javascript median of array 
Javascript :: google apps script lock service 
Javascript :: how to download image in canvas javascript as named 
Javascript :: change background colour jquery 
Javascript :: generate random number javascript 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =