dotnet / dotnet/android

Gradle Equivalent To: useLegacyPackaging

Open
#7,771 11 comments 0 reactions 2 assignees Claimed by @jonathanpeppers View on GitHub
Area: App+Library Build enhancement
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 20h
Merged PRs (30d)
257

Description

### Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.)

### Affected platform version

VS 2022

### Description

Starting with AGP 4.2.0, the extractNativeLibs manifest attribute has been replaced by the DSL option [useLegacyPackaging](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/JniLibsPackagingOptions#uselegacypackaging). You should use useLegacyPackaging in your app's build.gradle file instead of extractNativeLibs in the manifest file to configure native library compression behavior. For more information, see the release note [Use the DSL to package compressed native libraries](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=ndk-build#compress-native-libs-dsl).

### Steps to Reproduce

Starting with AGP 4.2.0, the extractNativeLibs manifest attribute has been replaced by the DSL option [useLegacyPackaging](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/JniLibsPackagingOptions#uselegacypackaging). You should use useLegacyPackaging in your app's build.gradle file instead of extractNativeLibs in the manifest file to configure native library compression behavior. For more information, see the release note [Use the DSL to package compressed native libraries](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=ndk-build#compress-native-libs-dsl).

### Did you find any workaround?

no

### Relevant log output

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.