Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

CREATEMULTIDEXMAINDEXCLASSLIST Issue #810

@brad-dixon

Description

@brad-dixon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions