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

Android mipmap/appicon failing with "APT2260" #21838

Merged
merged 1 commit into from
May 2, 2024

Commits on Apr 26, 2024

  1. Android mipmap/appicon failing with "APT2260"

    Context https://developercommunity.visualstudio.com/t/Android-mipmapappicon-failing-with-APT/10622494
    
    Users are reporting this error quite allot. During
    a build it fails with the following error
    
    ```
     APT2260 resource mipmap/appicon (aka xxx:mipmap/appicon) not found.
    ```
    
    Further investigation this only appears to happen during a full build
    of all the platforms. Specifying `-f net8.0-android` on the build
    this does not seem to happen at all.
    
    The problem is the build gets into a weird situation where the `mauiimage.stamp` file
    is present but none of the generated images are. Considering that the
    stamp file gets generated AFTER the images its kinda difficult to see
    how this even occurs.
    
    The work around for this is to write the list of generated image files to
    `mauiimage.outputs`. We can then read this list back on subsequent builds
    and use that list for the `Outputs` of the `ResizetizeImages` target.
    This means the target will run if either the stamp file or any of the
    expected images are not present.
    dellis1972 committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    7ffc011 View commit details
    Browse the repository at this point in the history