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

[MAUI] An error 'XAPRAS7004 :System.ArgumentException: must not be null or emptyParameter name: abi ...'will happen when building the existing Projects recipeSearch & ManualMauiTests #26056

Open
ninachen03 opened this issue Nov 22, 2024 · 0 comments
Labels
area-testing Unit tests, device tests csi-new platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@ninachen03
Copy link

ninachen03 commented Nov 22, 2024

Description

  1. Build the existing Projects recipeSearch & ManualMauiTests project. will meet the error
    System.ArgumentException: must not be null or emptyParameter name: abi at Xamarin.Android.Tasks.ProcessAssemblies.SetAssemblyAbiMetadata(String abi, ITaskItem assembly, ITaskItem symbol) in /Users/runner/work/1/s/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/ProcessAssemblies.cs:line 99 at Xamarin.Android.Tasks.ProcessAssemblies.SetMetadataForAssemblies(List1 output, Dictionary2 symbols) in /Users/runner/work/1/s/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/ProcessAssemblies.cs:line 124 at Xamarin.Android.Tasks.ProcessAssemblies.RunTask() in /Users/runner/work/1/s/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/ProcessAssemblies.cs:line 62 at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 25

Steps to Reproduce

  1. Download the project https://github.com/rachelkang/recipeSearch or https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests and open it in Visual Studio.
  2. Change the NET Framework to Net 9
  3. Build the project.
  4. Observed the error List
    Image

Link to public reproduction project repository

https://github.com/rachelkang/recipeSearch

Version with bug

· VS Version: 17.13.0 Preview 2.0 [35520.232.main]
· Microsoft.Maui.Controls: 9.0.0
· .NET SDK: 9.0.200-preview.0.24529.19
· Sdk-manifest: 9.0.100
· microsoft.net.sdk.android: 35.0.7
· microsoft.net.sdk.maui: 9.0.0
· microsoft.net.sdk.ios:18.0.9617
· microsoft.net.sdk.Maccatalyst:18.0.9617
microsoft.net.workload.mono.toolchain.current: 9.0.0

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

· VS Version: 17.13.0 Preview 2.0 [35519.241.main]
· Microsoft.Maui.Controls: 9.0.0
· .NET SDK: 9.0.200-preview.0.24529.19
· Sdk-manifest: 8.0.100 & 9.0.100
· microsoft.net.sdk.android: 35.0.7
· microsoft.net.sdk.maui: 9.0.0
It seems to have nothing to do with Maui control. I haven't investigated the specific cause of the impact, but I can give you the previous working version.

Affected platforms

Android

@ninachen03 ninachen03 added csi-new platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working labels Nov 22, 2024
@samhouts samhouts added the area-testing Unit tests, device tests label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests csi-new platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants