-
Notifications
You must be signed in to change notification settings - Fork 544
[Xamarin.Android.Build.Tasks] error for Android.Support #8629
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5d86d4b
[Xamarin.Android.Build.Tasks] error for Android.Support
jonathanpeppers a286263
[Xamarin.Android.Build.Tasks] fix bug in `AndroidFastDeploymentType=A…
jonathanpeppers ab5631d
Prefer trailing `,`s
jonpryor f023369
Prefer trailing `,`s
jonpryor f28402a
Prefer trailing `,`s
jonpryor 130b960
Reformat for legibility
jonpryor 896be1a
Remove `string.Format` in error message
jonathanpeppers 26370ab
`not supported in .NET 9 and later`
jonathanpeppers fab96aa
Restore `ExtraAaptManifest` test using AndroidX/Firebase
jonathanpeppers b7fbc07
VS lost some tabs
jonathanpeppers d6d76aa
Formatting
jonathanpeppers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Xamarin.Android error XA1039 | ||
description: XA1039 error code | ||
ms.date: 1/10/2024 | ||
--- | ||
# Xamarin.Android error XA1039 | ||
|
||
## Example messages | ||
|
||
``` | ||
error XA1039: The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details. | ||
``` | ||
|
||
## Issue | ||
|
||
Outdated "Android Support Library" packages are no longer supported in .NET 9: | ||
|
||
* `Xamarin.Android.Arch.*` | ||
* `Xamarin.Android.Support.*` | ||
|
||
The underlying Java libraries are no longer supported by Google since the final | ||
28.0.0 release. See the [Android Support Library Documentation][support] for | ||
details. | ||
|
||
Some example prefixes of the newer, supported AndroidX packages are: | ||
|
||
* `Xamarin.AndroidX.*` | ||
* `Xamarin.AndroidX.Arch.*` | ||
|
||
For more information about the Android Support libraries or AndroidX, see: | ||
|
||
* [Android Support Library Documentation][support] | ||
* [AndroidX Documentation](https://developer.android.com/jetpack/androidx) | ||
|
||
[support]: https://developer.android.com/topic/libraries/support-library/packages | ||
|
||
## Solution | ||
|
||
Remove all NuGet package references to `Xamarin.Android.Support` or | ||
`Xamarin.Android.Arch` in favor of the new AndroidX equivalents. | ||
|
||
This also can occur if you are using a NuGet package with a transitive | ||
dependency on the Android support packages. In this case, you will need to | ||
remove the package or contact the package author. | ||
|
||
See the [AndroidX migration documentation](https://aka.ms/xamarin/androidx) for | ||
details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this test removed? It doesn't appear to (directly?) use the Support libraries; presumably it's because it starts with
Xamarin.Android
. Is there not a newer Crashytics? It looks like there's a Xamarin.Firebase.Crashlytics package which exists…This test is also weird, in that it's the only test that uses
Crashlytics.HandleManagedExceptions()
…There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to put it back, using:
Xamarin.Firebase.Crashlytics
NuGetFirebase.Crashlytics.FirebaseCrashlytics.Instance.SendUnsentReports()
firebaseinitprovider
in theAndroidManifest.xml