Xamarin Android Build Fails with AndroidLinkTool - R8

S Sooraj PR 3 years 5 months ago
288 4 0

If I enable Android Link tool & Android Dex tool the build fails in Xamarin Android.
In my app I enabled these two configurations
r8
d8
After enabling that I am getting the below error.
Build FAILED.
obj/Release/android/AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-library at path: /Users/sooraj/Library/Developer/Xamarin/android-sdk-macosx/platforms/android-28/optional/com.symbol.emdk.jar
R8 : warning : Missing class: com.symbol.emdk.barcode.BarcodeManager$ScannerConnectionListener
R8 : warning : Missing class: com.symbol.emdk.barcode.Scanner$DataListener
R8 : warning : Missing class: com.symbol.emdk.simulscan.SimulScanReader$StatusListerner
R8 : warning : Missing class: com.symbol.emdk.EMDKManager$StatusListener
R8 : warning : Missing class: com.symbol.emdk.barcode.Scanner$StatusListener
R8 : warning : Missing class: com.symbol.emdk.EMDKManager$EMDKListener
R8 : warning : Missing class: com.symbol.emdk.scanandpair.ScanAndPairManager$StatusListener
R8 : warning : Missing class: com.symbol.emdk.ProfileManager$DataListener
R8 : warning : Missing class: com.symbol.emdk.simulscan.SimulScanReader$DataListerner
R8 : error : Compilation can't be completed because some library classes are missing.
10 Warning(s)
1 Error(s)
Time Elapsed 00:00:03.67
Unable to find //manifest/application/uses-library at path: /Users/sooraj/Library/Developer/Xamarin/android-sdk-macosx/platforms/android-28/optional/com.symbol.emdk.jar
Since I am targeting my app in both Zebra and Other consumer devices I am using this line of code in manifest.

Could you please help

Please Register or Login to post a reply

4 Replies

R Rakesh R Nair

https://github.com/xamarin/xamarin-android/issues/4457
https://developercommunity.visualstudio.com/content/problem/963843/visua...
As per the update from Microsoft. Zebra has to fix this. Please fix this and push a new nuget package.

A Alexander Palchikov

Hello.
Yes, you are correct.
You have to use Nuget package to install EMDK for Xamarin.
http://techdocs.zebra.com/emdk-for-xamarin/5-0/guide/nuget/
Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

A Alexander Palchikov

Hello.
Have you installed EMDK?
As far as I understand EMDK is not installed or is installed incorrectly.
http://techdocs.zebra.com/emdk-for-xamarin/5-0/guide/nuget/
Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

E Ewan Paterson

Exactly the same issue here. Using the Symbol.XamarinEMDK Nuget package (version 4.0.0.3). Building with Visual Studio Enterprise 16.2.3 on Windows 10.
As far as I am aware, there is no option to "install" EMDK for Xamarin beyond installing the Nuget package, am I correct?

CONTACT
Can’t find what you’re looking for?