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: New GPS/FB/MLKit packages require MonoAndroid12.0+ #596

Closed
jpobst opened this issue Apr 4, 2022 · 0 comments
Closed

Announcement: New GPS/FB/MLKit packages require MonoAndroid12.0+ #596

jpobst opened this issue Apr 4, 2022 · 0 comments

Comments

@jpobst
Copy link
Contributor

jpobst commented Apr 4, 2022

Context: xamarin/AndroidX#444

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

As such, all AndroidX packages going forward now require MonoAndroid12.0+.

~All GPS/FB/MLKit packages in this repository depend on AndroidX, and thus these packages must also be bumped to MonoAndroid12.0+ in order to reference the latest AndroidX packages. As such, we have to move the entire GPS/FB/MLKit 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 before this change 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 Apr 4, 2022
@jpobst jpobst closed this as completed Apr 4, 2022
@jpobst jpobst changed the title Announcement: Updated GPS/FB/MLKit packages require MonoAndroid12.0+ Announcement: New GPS/FB/MLKit packages require MonoAndroid12.0+ Apr 4, 2022
@jpobst jpobst unpinned this issue May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant