MAUI incorrectly packs JAR dependencies into .nupkg
#9974
Labels
Area: App+Library Build
Issues when building Library projects or Application projects.
Area: Bindings
Issues in Java Library Binding projects.
Milestone
Description
It seems that MAUI incorrectly packs JAR dependencies into
.nupkg
(if adding withAndroidMavenLibrary
).The dependencies that provide AARs works fine. If adding the project locally from the folder, it also works fine.
Steps to Reproduce
org.jetbrains.kotlinx:kotlinx-serialization-json-jvm
)sdk-maui
project (just -f sdk-maui/justfile build-android
)just -f sdk-maui/justfile release
)quickstart-maui
project (just -f quickstart-maui/justfile add-local-release
)quickstart-maui
project (just -f quickstart-maui/justfile run-android
)Expected result: The app is working, white screen is displayed
Actual result: The app crashes with the following error:
Link to public reproduction project repository
https://github.com/pavel-kuznetsov-hypertrack/maui-jar-issue-repro
Version with bug
9.0.14 SR1.4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
If you uncomment
<AndroidMavenLibrary Include="org.jetbrains.kotlinx:kotlinx-serialization-json-jvm" Version="1.3.3" Bind="false" Condition="'$(TargetFramework)' == 'net9.0-android'" />
line in
quickstart-maui/QuickstartMaui.csproj
and build the project again, the app will work correctly.Relevant log output
The text was updated successfully, but these errors were encountered: