Description
The below error occurs for me during both a debug and release build on my local machine ...
/Users/{user}/{company}/{project}/Droid/CREATEMULTIDEXMAINDEXCLASSLIST: Error: Can't write [/private/var/folders/zx/cg5_6s3930q1f4t896hrk7t00000gn/T/9rugjo7k.1ft.jar] (Can't read [/Users/{user}/{company}/{project}/Droid/obj/Debug/lp/78/jl/bin/classes.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [classes.jar:android/arch/lifecycle/LiveData$1.class])) ({project}.Droid)
... and this only seems to happen when Xamarin.Essentials is added. If I remove it, the project builds without issue.
There is another issue open here ...
xamarin/XamarinComponents#579
... but I do not have Xamarin.Google.Guava installed on this project so apologies if this is already open elsewhere.
Basic Information
Given it looks related, the project has multidex turned on due to the inclusion of a package that was added around 12 months ago.
The project is targeting Android 9.0 (API Level 28) but also tried on 8.1 and still got the same error.
Happy to provide more information where appropriate.
Apologies if this isn't linked to Essentials but it's the only thing I currently have to go on.
Version
Visual Studio version information attached.
Version Info.pdf