-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Build error when using some packages on Android #10152
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
This issue is a showstopper for us wrt supporting .NET MAUI. We can't add AR support to our libraries without this, and are stuck on Xamarin.Forms. |
Those are old libraries/components/packages in XamarinComponents https://github.com/xamarin/XamarinComponents/tree/main/Android/ARCore https://github.com/xamarin/XamarinComponents/tree/main/Android/SceneForm and they don't have net6 support https://github.com/xamarin/XamarinComponents/blob/main/Android/SceneForm/source/Core/Core.csproj#L3 and do not depend on AndroidX, rather on triassic legacy Android.Support packages. |
So how are we going to use ARCore in a MAUI app? |
Best bet would be - update for ARCore and SceneForm and some testing. I will try to do it, but cannot promise when. |
Any update to this and getting the bindings updated for .NET 6? |
When can we expect a fix for this so Toolkit will work on MAUI? I would only need Android support at the moment... |
@nCastle1 You are referencing Support packages and AndroidX, usually sooner or later it will cause troubles. There is the same attribute defined in 2 packages:
Manifestest merger doesn't know which one is correct. Try adding to
This tells manifest merger that your app is overriding attribute You can look at AndroidManifest.xml from AndroidX for reference: |
It looks like the issue here then is that /cc @moljac |
Btw wrt the proposed app manifest workaround, that just gets me to a new exception:
|
Note that packages in XamarinComponents (including Also note that it appears Google has discontinued SceneForm, so you may want to pursue an alternative library to use: The Microsoft provided bindings bind the latest version of SceneForm from Google (https://maven.google.com/web/index.html?q=sceneform#com.google.ar.sceneform.ux:sceneform-ux) and it appears Google never updated the library to use AndroidX instead of Android Support Libraries. One thing you can try is adding the |
I concur with @jpobst's assessment here. To reiterate some things:
So, I don't think there is anything to be done here. But please file a new issue if you are hitting a similar problem with a different combination of NuGet packages that are supported. Thanks! |
@jonathanpeppers @jpobst I think that's fair to skip SceneForm considering its outdated support. It does still beg the question around the base ARCore library. It's by now several versions behind, and while it doesn't exhibit the above build error, it is still only targeting the old xamarin.android runtime. Having all the XamarinComponents deprecated is still a bit of an issue - some of them are still very valuable. |
Description
When attempting to build an Android project there is the following error:
SceneForm.UX package depends on Xamarin.Android.Support.Fragment. Referencing Xamarin.Android.Support.Fragment also fails to build but with a different error.
Steps to Reproduce
Xamarin.Android.SceneForm.UX
version1.17.1
Link to public reproduction project repository
https://github.com/nCastle1/maui-bug-repro-repo
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: