“Kesalahan Duplikat Sumber Daya Bereaksi Asli” Kode Jawaban

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()
}
mukashwasti_

Kesalahan Duplikat Sumber Daya Bereaksi Asli

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

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

Jawaban yang mirip dengan “Kesalahan Duplikat Sumber Daya Bereaksi Asli”

Pertanyaan yang mirip dengan “Kesalahan Duplikat Sumber Daya Bereaksi Asli”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya