-
Notifications
You must be signed in to change notification settings - Fork 48
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
MAUI app cannot resolve androidx.compose.ui.platform.ComposeView from Android Binding Library #1090
Comments
@TheFoxan12
please see |
OK. I am sorry - did not read everything and carefully. So you have
Is that right? I need to check bindings, but did you check proguard? Checked: yup. Back then (in 2021) I didn't have time to tackle huge amount of errors so I removed managed code |
Hey, thank you for answering. I didn't really understand your answer with the links even if you seem to have understood, I will summarize it again clearly: I have
I'm pretty beginner in Kotlin and Android libs, so what do you mean by checking proguard ? Assuming you're talking about proguard rules in my android library, what should I look for ? Regarding your last check, what does it mean ? xd Will I be able to use Compose ? Or will it really be impossible ? |
OK. I got it right.
Today it is R8. https://developer.android.com/build/shrink-code
I will have to redo the bindings.
I hope so.
Nothing is impossible, just limited right now.
Not that I know of right now. |
Thanks, |
Hard to tell. I need to check 1st. I would say - weeks. |
WIP There are few subborn artifacts with lot of errors, but I think it will be few weeks (this is not our highest pirority) In the meantime would you be so kind and create minimal repro sample, so I can test against something, please? |
Thanks for working on it, I'll create a sample project as soon as I can. I am also happy to inform you that I found and alternative temporary solution, which is adding every dependencie file in .aar/.jar downloaded directly from the maven repository of androidx, in the android binding library |
Android framework version
net9.0-android
Affected platform version
VS Enterprise 2022 17.12.4, .NET 9.0.102,
Description
I have kotlin code that needs androidx.compose.ui to work.
I build an android library from this kotlin code, then import it in an Android Binding Library in VS, and I add the dependencies in the .csproj,
with notably
among a lot of other packages
I then import this library in a MAUI application, and when launching a ComponentActivity, there is a runtime error
see also https://stackoverflow.com/questions/79421004/maui-java-class-resolution-fails-even-with-dependencie-added
Steps to Reproduce
and
and
Did you find any workaround?
no :(
Relevant log output
The text was updated successfully, but these errors were encountered: