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 :: javascript format number with commas 
Javascript :: refresh a page in jquery 
Javascript :: A form label must be associated with a control react 
Javascript :: how to format multiline string in javascript 
Javascript :: mongoose connect to URL of atlas 
Javascript :: array sort by alphabetical javascript 
Javascript :: dropzone add download button 
Javascript :: js redirect 
Javascript :: redirect react js 
Javascript :: redirect the page in javascript 
Javascript :: js display only date 
Javascript :: color p5js 
Javascript :: jquery datepicker set default date 
Javascript :: binary search in js 
Javascript :: props to react router link 
Javascript :: set delay javascript 
Javascript :: Set Custom User Agent react 
Javascript :: too many open files react native 
Javascript :: nodejs express return image 
Javascript :: jquery if element is clicked 
Javascript :: filter falsy values 
Javascript :: js stop redirect 
Javascript :: settimeout 
Javascript :: js date subtract days 
Javascript :: discordjs delete all messages in channel 
Javascript :: jquery remove style 
Javascript :: remove white space from string in js 
Javascript :: regex any letter 
Javascript :: load a page with ajax 
Javascript :: get current time in javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =