-
Notifications
You must be signed in to change notification settings - Fork 533
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
Errors that packages does not exist when integrate two different libraries #8332
Comments
It just looks like |
Hi @syakimchik. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi @jonathanpeppers, If I build the project only with But something breaks when I add it happened when we moved to using MAUI. When we take our previous version of libraries that using Forms, we will not have any issues. Something wrong in the Mono platform, but I cannot understand what breaks it. |
I've created library as described in the topic . It's easy for Android platform. Both libraries have the same dependencies with the same versions. As I said, when we used Xamarin Forms, we hadn't had any issues. |
Is the problem one of your If so, it could be the problem described here (workarounds here, too): #8308 (comment) |
@jonathanpeppers, I've attached the project with .NET 8, but it doesn't work too. I tried to apply your solution from #8308 (comment), but it doesn't work. I got even more errors. Can you try to build sample above? |
Hi @jonathanpeppers , |
Hi @syakimchik, I'm facing the same issue.
The project is on MAUI 8.0 This is the set of references: Any help would be very appreciated |
Hi @Lug16, |
@syakimchik could you try adjusting one of the packages underlying aar name and see if that possibly fixes this? My running theory is that with both of these nuget packages referencing the same name of aar's "api.aar" that it results in an overwrite or wrong reference which causes the compilation issue. I haven't set up a test project to test the theory, but it seems logical as to why they work independently but not when both are referenced. The old version of this SDK (Xamarin.Regula.FaceApi.Core.Android) the underlying aar was called "core.aar", hence why I think the theory holds as to why it used to work fine with that SDK and not this one as there wasn't a naming conflict. EDIT: Theory is proved. If I go into my nuget cache folder, rename "api.aar" to something unique like "facecoreapi.aar", the app immediately compiles. I think it has to do with the fact that this face library has a dependency on the document sdk, which also has its own api.aar file. So it references the wrong one, and then has compile errors. However, this results in a document exception error at runtime: |
Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
VS 2023 17.6.3 (build 421), .NET 7.0
Description
When I added Xamarin.DocumentReader.Api.Android and Xamarin.DocumentReader.Core.FullRfid.Android to the new project it built without any issues. But when I add another library, it cause problems in the first.
Mono cannot build references in the first library, but when I remove the second dependency it will build again.
Steps to Reproduce
Did you find any workaround?
No response
Relevant log output
/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/bin/javac -J-Dfile.encoding=UTF8 "@/var/folders/46/mp5fvk691s7fh0wn1_mghjfh0000gn/T/tmpmeWoI8.tmp" -target 1.8 -source 1.8 obj/Debug/net7.0-android/android/src/mono/com/regula/documentreader/api/listener/NetworkInterceptorListenerImplementor.java:8: error: package com.regula.documentreader.api.listener does not exist com.regula.documentreader.api.listener.NetworkInterceptorListener ^ obj/Debug/net7.0-android/android/src/mono/com/regula/documentreader/api/ble/BLEWrapper_IBleNfcApduListenerImplementor.java:8: error: package com.regula.documentreader.api.ble.BLEWrapper does not exist com.regula.documentreader.api.ble.BLEWrapper.IBleNfcApduListener
The text was updated successfully, but these errors were encountered: