React Native Android Duplicate file error when generating apk

后端 未结 8 1490
生来不讨喜
生来不讨喜 2020-11-30 20:30

When I am trying to generate android apk by using ./gradlew installRelease, I get this error in console:

~/React-Native/mockingbird/android/app/         


        
8条回答
  •  孤城傲影
    2020-11-30 21:16

    Remove the files you might have on:

    android/app/src/main/res/drawable-mdpi/
    android/app/src/main/res/drawable-xhdpi/
    android/app/src/main/res/drawable-xxhdpi/
    

    Run Build again, This fixed the issue for me.

提交回复
热议问题