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

Announcement: Updated AndroidX packages require MonoAndroid12.0+ #444

Closed
jpobst opened this issue Dec 13, 2021 · 1 comment
Closed

Announcement: Updated AndroidX packages require MonoAndroid12.0+ #444

jpobst opened this issue Dec 13, 2021 · 1 comment

Comments

@jpobst
Copy link
Contributor

jpobst commented Dec 13, 2021

Beginning with AndroidX.Core 1.7.0, the Google AndroidX Java packages require API-31 (Android 12) in order to compile. Attempting to compile apps using them with previous versions of Android result in the following error:

error APT2260: resource android:attr/lStar not found.
error APT2062: failed linking references.

This can also be seen in the META-INF\com\android\build\gradle\aar-metadata.properties file in core-1.7.0.aar (source):

aarFormatVersion=1.0
aarMetadataVersion=1.0
minCompileSdk=31

AndroidX.Core is a "core" part of AndroidX and thus nearly every AndroidX package depends on it. As such, we have to move the entire AndroidX package ecosystem from MonoAndroid9.0/net6.0-android31.0 to MonoAndroid12.0/net6.0-android31.0. This means if you are targeting MonoAndroid9.0/10.0/11.0, you will not be able to use the latest packages. However the existing packages based on AndroidX.Core 1.6.x will continue to work.

Note this only affects the Android version you are "targeting". Applications targeting MonoAndroid12.0 will continue to run on devices running previous Android versions.

@jpobst jpobst pinned this issue Dec 13, 2021
@jpobst jpobst changed the title Announcement: AndroidX packages now require MonoAndroid12.0+ Announcement: Updated AndroidX packages now require MonoAndroid12.0+ Dec 13, 2021
@jpobst jpobst changed the title Announcement: Updated AndroidX packages now require MonoAndroid12.0+ Announcement: Updated AndroidX packages require MonoAndroid12.0+ Dec 13, 2021
@jpobst jpobst closed this as completed Jan 11, 2022
@VWilcox2000

This comment was marked as off-topic.

@xamarin xamarin locked and limited conversation to collaborators May 24, 2022
@jpobst jpobst unpinned this issue May 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants