Share via

getting error when .NET MAUi app upgrade .NET 9 t .NET 10

Bhuwan 1,226 Reputation points
2026-01-02T06:07:55.7133333+00:00

getting this multiple error after upgrade .net 9 to .net 10

D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\361\jl\AndroidManifest.xml Warning:
Namespace 'com.google.android.recaptcha' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\327\jl\AndroidManifest.xml Warning:
Namespace 'com.google.firebase.abt' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\367\jl\AndroidManifest.xml Warning:
Namespace 'com.google.android.gms.ads_identifier' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\340\jl\AndroidManifest.xml Warning:
Namespace 'com.google.firebase.database.collection' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\349\jl\AndroidManifest.xml Warning:
Namespace 'com.google.firebase.installations' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\370\jl\AndroidManifest.xml Warning:
Namespace 'com.google.android.gms.auth.api' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\355\jl\AndroidManifest.xml Warning:
Namespace 'com.google.firebase.storage' is used in multiple modules and/or libraries: AndroidManifest.xml, AndroidManifest.xml. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespaceuses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library D:\Projects\App git\WebInterface\MAUIApp\obj\Debug\net10.0-android\lp\237\jl\AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 23,
or use tools:overrideLibrary="androidx.lifecycle.runtime" to force usage (may lead to runtime failures)
Directory 'obj\Debug\net10.0-android\lp\361' is from 'recaptcha.aar'.
Directory 'obj\Debug\net10.0-android\lp\327' is from 'firebase-abt.aar'.
Directory 'obj\Debug\net10.0-android\lp\367' is from 'play-services-ads-identifier.aar'.
Directory 'obj\Debug\net10.0-android\lp\340' is from 'firebase-database-collection.aar'.
Directory 'obj\Debug\net10.0-android\lp\349' is from 'firebase-installations.aar'.
Directory 'obj\Debug\net10.0-android\lp\370' is from 'play-services-auth.aar'.
Directory 'obj\Debug\net10.0-android\lp\355' is from 'firebase-storage.aar'.
Directory 'obj\Debug\net10.0-android\lp\366' is from 'googleid.aar'.
Directory 'obj\Debug\net10.0-android\lp\346' is from 'firebase-functions.aar'.
Directory 'obj\Debug\net10.0-android\lp\379' is from 'play-services-measurement-sdk-api.aar'.
Directory 'obj\Debug\net10.0-android\lp\380' is from 'play-services-measurement-sdk.aar'.
Directory 'obj\Debug\net10.0-android\lp\341' is from 'firebase-datatransport.aar'.
Directory 'obj\Debug\net10.0-android\lp\351' is from 'firebase-measurement-connector.aar'.
Directory 'obj\Debug\net10.0-android\lp\347' is from 'firebase-iid.aar'.
Directory 'obj\Debug\net10.0-android\lp\334' is from 'firebase-common.aar'.
Directory 'obj\Debug\net10.0-android\lp\343' is from 'firebase-encoders-json.aar'.
Directory 'obj\Debug\net10.0-android\lp\350' is from 'firebase-installations-interop.aar'.
Directory 'obj\Debug\net10.0-android\lp\352' is from 'firebase-messaging.aar'.
Directory 'obj\Debug\net10.0-android\lp\373' is from 'play-services-cloud-messaging.aar'.
Directory 'obj\Debug\net10.0-android\lp\345' is from 'firebase-firestore.aar'.
Directory 'obj\Debug\net10.0-android\lp\360' is from 'integrity.aar'.
Directory 'obj\Debug\net10.0-android\lp\375' is from 'play-services-measurement-api.aar'.
Directory 'obj\Debug\net10.0-android\lp\353' is from 'protolite-well-known-types.aar'.
Directory 'obj\Debug\net10.0-android\lp\337' is from 'firebase-config.aar'.
Directory 'obj\Debug\net10.0-android\lp\369' is from 'play-services-auth-base.aar'.
Directory 'obj\Debug\net10.0-android\lp\372' is from 'play-services-basement.aar'.
Directory 'obj\Debug\net10.0-android\lp\374' is from 'play-services-fido.aar'.
Directory 'obj\Debug\net10.0-android\lp\382' is from 'play-services-tasks.aar'.
Directory 'obj\Debug\net10.0-android\lp\377' is from 'play-services-measurement.aar'.
Directory 'obj\Debug\net10.0-android\lp\332' is from 'firebase-auth.aar'.
Directory 'obj\Debug\net10.0-android\lp\330' is from 'firebase-appcheck.aar'.
Directory 'obj\Debug\net10.0-android\lp\378' is from 'play-services-measurement-impl.aar'.
Directory 'obj\Debug\net10.0-android\lp\354' is from 'firebase-sessions.aar'.
Directory 'obj\Debug\net10.0-android\lp\381' is from 'play-services-stats.aar'.
Directory 'obj\Debug\net10.0-android\lp\359' is from 'core-common.aar'.
Directory 'obj\Debug\net10.0-android\lp\333' is from 'firebase-auth-interop.aar'.
Directory 'obj\Debug\net10.0-android\lp\336' is from 'firebase-components.aar'.
Directory 'obj\Debug\net10.0-android\lp\338' is from 'firebase-config-interop.aar'.
Directory 'obj\Debug\net10.0-android\lp\368' is from 'play-services-auth-api-phone.aar'.
Directory 'obj\Debug\net10.0-android\lp\371' is from 'play-services-base.aar'.
Directory 'obj\Debug\net10.0-android\lp\331' is from 'firebase-appcheck-interop.aar'.
Directory 'obj\Debug\net10.0-android\lp\335' is from 'firebase-common-ktx.aar'.
Directory 'obj\Debug\net10.0-android\lp\339' is from 'firebase-crashlytics.aar'.
Directory 'obj\Debug\net10.0-android\lp\376' is from 'play-services-measurement-base.aar'.
Directory 'obj\Debug\net10.0-android\lp\328' is from 'firebase-analytics.aar'.
Directory 'obj\Debug\net10.0-android\lp\348' is from 'firebase-iid-interop.aar'.
Directory 'obj\Debug\net10.0-android\lp\237' is from 'androidx.lifecycle.lifecycle-runtime-android.aar'.
Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

Answer accepted by question author

AI answer

2026-01-02T06:08:14.3666667+00:00

The errors you are encountering after upgrading your .NET MAUI app from .NET 9 to .NET 10 are primarily related to namespace conflicts and SDK version requirements. Here are some steps you can take to resolve these issues:

  1. Namespace Conflicts: The warnings about namespaces being used in multiple modules suggest that there are duplicate entries in your AndroidManifest.xml files. To resolve this:
    • Ensure that all libraries and modules you are using have unique namespaces. You may need to check the dependencies and their configurations to ensure there are no overlaps.
    • Review the AndroidManifest.xml files in your project and any libraries you are using to ensure that the namespaces declared are unique.
  2. Min SDK Version Issue: The error regarding minSdkVersion indicates that your project is set to a minimum SDK version of 21, while one of the libraries you are using requires a minimum SDK version of 23. To fix this:
    • You can either increase your project's minSdkVersion to at least 23 in your project settings or the AndroidManifest.xml file.
    • Alternatively, you could look for a compatible version of the library that supports minSdkVersion 21, although this may not always be possible.
  3. Cleaning the Project: After making changes, it is often helpful to clean the project. Delete the bin and obj folders from your project directory before rebuilding the project to ensure that there are no cached files causing issues.
  4. Review Dependencies: Check your NuGet packages and ensure they are all compatible with .NET 10. You may need to update some packages to their latest versions that support .NET 10.

By following these steps, you should be able to resolve the errors and successfully upgrade your .NET MAUI app to .NET 10.

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.