While building the release APK (using the command ./gradlew bundleRelease), it may give you the error

Execution failed for task ':app:mergeReleaseResources'
[folder path] Error: Duplicate resources

To solve this delete the following folders:
android\app\src\main\res\drawable-hdpi
android\app\src\main\res\drawable-mdpi
android\app\src\main\res\drawable-xhdpi
android\app\src\main\res\drawable-xxhdpi
android\app\src\main\res\drawable-xxxhdpi
android\app\src\main\res\raw