dotnet / dotnet/android

Errors that packages does not exist when integrate two different libraries

Open
#8,332 10 comments 0 reactions 2 assignees Claimed by @jonathanpeppers View on GitHub
Area: App+Library Build
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 19h
Merged PRs (30d)
252

Description

### 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

1. Create a new .NET MAUI App project.
2. Add dependencies: Xamarin.DocumentReader.Api.Android and Xamarin.DocumentReader.Core.FullRfid.Android
3. Build project. In the result, you will see that project will build successfully.
4. Add Xamarin.Regula.FaceApi.Android and Xamarin.Regula.FaceApi.Core.Android
5. Build project again. You will see that errors that some classes in dependencies from step 2 are missing.

### Did you find any workaround?

_No response_

### Relevant log output

```shell
/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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.