Skip to content

Visual Studio Archive Manager creates APK with compressed resources.arsc, causing installation failure on Android 16 (API 36) #11768

Description

@pfankhauser57

Android framework version

net10.0-android

Affected platform version

Visual Studio 2026 18.7.2, .NET 10 MAUI, Target Framework: net10.0-android, Android device: Android 16 (API 36)

Description

When creating an Android APK using the Visual Studio Archive Manager ("Publish" → "Archive Manager" → "Distribute"), the resulting APK cannot be installed on an Android 16 device.

The installation fails with:

adb.exe: failed to install app.apk:
Failure [-124: Failed parse during installPackageLI:
Targeting R+ (version 30 and above) requires the resources.arsc
of installed APKs to be stored uncompressed and aligned on a
4-byte boundary]

The same project builds and installs successfully when using a normal Release build with MSBuild signing (AndroidKeyStore=true).

Steps to Reproduce

  1. Build MAUI-App with Release/Android-LocalDevice
  2. Right-Click on MAUI-Project/Publish -> Archive-Manager starts and builds archive
  3. Archive-Manager Distribute apk-File to published folder
  4. Download apk-File to Android device
  5. Install apk-File -> Error "Not installed..."

Did you find any workaround?

  1. Build MAUI-App with Release/Android-LocalDevice
  2. Put apk-File from bin/Release/net10-android to published folder.
  3. Download apk-File to Android device
  4. Install apk-File -> OK, run as expected

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App+Library BuildIssues when building Library projects or Application projects.needs-triageIssues that need to be assigned.

    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