Skip to content

AAPT2 compile error for react-native-logo.png #850

@andre-krueger

Description

@andre-krueger

Describe the bug
The mentioned file is causing compile errors, as they are MS Windows icon resources, while their extension is PNG.

To Reproduce
Build a React Native app with Storybook setup in release mode, with AAPT2 enabled.

Expected behavior
The app should build successfully.

Code snippets

file .../android/app/build/generated/res/.../drawable-mdpi/node_modules_storybook_reactnativeuicommon_src_assets_reactnativelogo.png 

.../drawable-mdpi/node_modules_storybook_reactnativeuicommon_src_assets_reactnativelogo.png: MS Windows icon resource - 4 icons, 16x16, 32 bits/pixel, 24x24, 32 bits/pixel

System:

│  System:
│  OS: macOS 26.2
│  CPU: (12) arm64 Apple M2 Pro
│  Shell: 5.9 - /bin/zsh
│  Binaries:
│  Node: 23.3.0 - /Users/andre/.asdf/installs/nodejs/23.3.0/bin/node
│  Yarn: 4.7.0 - /Users/andre/.asdf/installs/nodejs/23.3.0/bin/yarn <----- active
│  npm: 10.9.0 - /Users/andre/.asdf/plugins/nodejs/shims/npm
│  Browsers:
│  Chrome: 145.0.7632.116
│  Firefox: 141.0
│  Safari: 26.2
│  npmPackages:
│  @storybook/addon-ondevice-actions: 10.2.3 => 10.2.3
│  @storybook/addon-ondevice-controls: 10.2.3 => 10.2.3
│  @storybook/react: 10.2.10 => 10.2.10
│  @storybook/react-native: 10.2.3 => 10.2.3
│  storybook: 10.2.10 => 10.2.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions