2023.3693 Android build 256 issue.

Hello.
Building to Android with Solar2D 2023.3693 fails with a 256 error.
There was no problem other than 3693.
Anyone have any idea?


FAILURE: Build failed with an exception.
                    
* What went wrong:
Execution failed for task ':App:copyDefaultNotificationIcons'.
> Entry drawable-xhdpi/corona_statusbar_icon_default.png is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.5/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

Is this on Mac or Windows? Can you provide a demo project please?
Thanks,
Scott

I’m building on a Mac.
It will take me some time to create a demo set that I can submit.
I have other urgent work to do, so this time I updated the app with 3692. 3692 had no problems.

I’m having the same:

Execution failed for task ':App:copyDefaultNotificationIcons'.
Entry drawable-xhdpi/corona_statusbar_icon_default.png is a duplicate but no duplicate handling strategy has been set.

if you find the problem let me know

I have the same problem:

14:13:58.784  FAILURE: Build failed with an exception.
14:13:58.784
14:13:58.784  * What went wrong:
14:13:58.784  Execution failed for task ':App:copyDefaultNotificationIcons'.
14:13:58.784  > Entry drawable-xxxhdpi/corona_statusbar_icon_default.png is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.5/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.
14:13:58.784
14:13:58.784  * Try:
14:13:58.784  > Run with --stacktrace option to get the stack trace.
14:13:58.784  > Run with --info or --debug option to get more log output.
14:13:58.784  > Run with --scan to get full insights.
14:13:58.784
14:13:58.784  * Get more help at https://help.gradle.org/
14:13:58.784
14:13:58.784  BUILD FAILED in 29s
14:13:59.462  Android build failed (1) after 34 seconds

Does anyone have a demo project that can reproduce this issue?
Scott needs it.

Mya has give me the solution:

Delete all those from root folder of your app

IconNotificationDefault-hdpi-v9.png
IconNotificationDefault-hdpi-v11.png
IconNotificationDefault-hdpi.png
IconNotificationDefault-ldpi-v9.png
IconNotificationDefault-ldpi-v11.png
IconNotificationDefault-ldpi.png
IconNotificationDefault-mdpi-v9.png
IconNotificationDefault-mdpi-v11.png
IconNotificationDefault-mdpi.png
IconNotificationDefault-xhdpi-v9.png
IconNotificationDefault-xhdpi-v11.png
IconNotificationDefault-xhdpi.png
IconNotificationDefault-xxhdpi-v11.png
IconNotificationDefault-xxxhdpi-v11.png

And replace with these new:

IconNotificationDefault-hdpi.png
IconNotificationDefault-ldpi.png
IconNotificationDefault-mdpi.png
IconNotificationDefault-xhdpi.png
IconNotificationDefault-xxhdpi.png
IconNotificationDefault-xxxhdpi.png

I can compile without errors. Only deleting v9 and v11 versions.

wonderful!
The build completed successfully.
No problem at all.
Thank you for your useful information!

hi @umalemon and @RoseCo
I have the same issue on the 2023.3695 release.

I just have a small question concerning the resolution of the problem brought by RoseCo’s comment.
All these old icons seem to have different sizes and the v11 icons are white whereas the v9 icons are grey and the default ones are black.

Should the next new icon names now correspond to the v11 icons we had? The white ones?

IconNotificationDefault-hdpi.png
IconNotificationDefault-ldpi.png
IconNotificationDefault-mdpi.png
IconNotificationDefault-xhdpi.png
IconNotificationDefault-xxhdpi.png
IconNotificationDefault-xxxhdpi.png

I have a similar problem. Recompiling old apps to comply with Google Play store API level and got this on 1 of 6 of my apps:

13:39:51.616 * What went wrong:
13:39:51.616 Execution failed for task ‘:App:copyMainApplicationIcon’.
13:39:51.616 > Entry mipmap-mdpi/ic_launcher.png is a duplicate but no duplicate handling strategy has been set. Please refer to Copy - Gradle DSL Version 7.5 for details.

Solved it by removing all old icons and only create needed for Android. This was probably obvious but not for me.

We ran into the same issue and the same approach fixed the build issue.

Do we still need these icons? Or can we remove theme permanently? I can’t seem to find any documentations on these anymore. Thx!