Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Having build issue #572

Closed
honorthrawn opened this issue Apr 5, 2022 · 1 comment
Closed

Having build issue #572

honorthrawn opened this issue Apr 5, 2022 · 1 comment

Comments

@honorthrawn
Copy link

When trying to build and run for android, I get the following error:

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
2 files found with path 'androidsupportmultidexversion.txt' from inputs:
- C:\Users\honor.gradle\caches\transforms-3\eec09900e84aadeceee52e2dd6e3acd5\transformed\multidex-2.0.0\jars\classes.jar
- C:\Users\honor.gradle\caches\transforms-3\c7bef13cc62e7a056a140300e38b4b82\transformed\multidex-1.0.3\jars\classes.jar
Adding a packagingOptions block may help, please refer to
https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
for more information
This occurs with the project template/hellow world example project.

@rjframe
Copy link

rjframe commented Apr 5, 2022

As a workaround you can add the following to build/platforms/android/build.extra.gradle:

android {
    packagingOptions {
        exclude '**/androidsupportmultidexversion.txt'
    }
}

@soywiz soywiz closed this as completed in d364191 Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants