Skip to content

release build fails with Execution failed for task ':app:processReleaseResources' #12710

@novotnej

Description

@novotnej

switch (scale) {
case 0.75: return 'ldpi-v4';
case 1: return 'mdpi-v4';
case 1.5: return 'hdpi-v4';
case 2: return 'xhdpi-v4';
case 3: return 'xxhdpi-v4';
case 4: return 'xxxhdpi-v4';
}

We use GitHub Issues for bugs.

Description

This is a duplicate of #5787, which has been closed for some reason.

This issue has not been resolved in the 0.42.0 release either so let's please agree that we will not close issues until they are resolved, thank you.

Reproduction

react-native run-android --configuration=release

Solution

change local-cli/bundle/assetPathUtils.js and then delete all drawable-dhpi (non-v4) dirs

switch (scale) {
      case 0.75: return 'ldpi-v4';
      case 1: return 'mdpi-v4';
      case 1.5: return 'hdpi-v4';
      case 2: return 'xhdpi-v4';
      case 3: return 'xxhdpi-v4';
      case 4: return 'xxxhdpi-v4';
  }

Additional Information

  • React Native version: 0.40.0, 0.42.0
  • Platform: Android
  • Operating System: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions