Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Duplicate Resources #299

@naftalimurgor

Description

@naftalimurgor

Change app icon

In which task and step of the Codelab can this issue be found?

I've been following the above linked Codelab and ran into issues changing the app icon at Step 6: Changing app icon

Error: Duplicate resources after Android Studio autogenerating Bitmap icons.

How to reproduce:

  1. Go to > Project, on Project pane of Android Studio
  2. Go to app/src/res/drawable
  3. Delete ic_launcher_foreground.xml
  4. Download https://raw.githubusercontent.com/google-developer-training/android-basics-kotlin-tip-calculator-app-solution/main/app/src/main/res/drawable-anydpi-v26/ic_launcher_background.xml and https://raw.githubusercontent.com/google-developer-training/android-basics-kotlin-tip-calculator-app-solution/main/app/src/main/res/drawable-anydpi-v26/ic_launcher_foreground.xml
  5. Go to Resource Manger on Android Studio
  6. Click on "+" then select Image Asset
  7. Select "Foreground Layer" under path to above downloaded "ic_launcher_foreground.xml" and "Background Layer" to the downloaded "ic_launcher_background.xml" (both downloaded from the above steps)
  8. Click "Next" then "Finish" to autogenerate the icons

Next steps would be to build the application to apply the new changes in terms of the icons. I get a build message: Duplicate resources when I attempt to build the project.

Versions
_Android Studio version: Arctic Fox 🦊
_API version of the emulator: 26

Additional information

duplicate_resources

Note: Notice the icons under different densities on the side pane

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions