Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error with adaptive_background_color and round image on android #17

Merged
merged 1 commit into from Jul 26, 2022
Merged

Fix error with adaptive_background_color and round image on android #17

merged 1 commit into from Jul 26, 2022

Conversation

Carapacik
Copy link
Contributor

IC_LAUNCHER_ROUND_BACKGROUND_COLOR_XML is not used anywhere, so an error occurs when generating a round icon with a background color.

Example of error

Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:C:\Users\User\StudioProjects\untitled\android\app\src\main\res\mipmap-anydpi-v26\ic_launcher_round.xml:3: AAPT: error: resource mipmap/ic_launcher_background (aka com.example.untitled:mipmap/ic_launcher_background) not found.```

@Carapacik
Copy link
Contributor Author

This is an example of a config

icons_launcher:
  image_path: 'assets/ic_logo.png'
  platforms:
    android:
      enable: true
      adaptive_background_color: '#FFFFFF'
      adaptive_foreground_image: 'assets/ic_foreground.png'
      adaptive_round_image: 'assets/ic_foreground.png'
    ios:
      enable: true

@mrrhak mrrhak merged commit 138978c into mrrhak:master Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants