androidbuild.gradleandroidxandroid-gradle-3.0androidx-test

Android Issue::More than one file was found with OS independent path 'androidsupportmultidexversion.txt' "error"


I am getting this issue while compiling my project I have tried a few solutions for that and that is

More than one file was found with OS independent path 'META-INF/LICENSE'

On gradle:3.0.0 More than one file was found with OS independent path 'META-INF/ASL2.0'

https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html

https://www.bswen.com/2019/11/android-More-than-one-file-was-found-with-OS-independent-path-META-INF-DEPENDENCIES.html

Error: More than one file was found with OS independent path 'META-INF/DEPENDENCIES'

'More than one file was found with OS independent path project.properties' Error in android

Gradle Error : More than one file was found with OS independent path 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version'

https://dorbae.github.io/android/troubleshooting/Android-Troubleshooting-Morethanonemetainf/

https://github.com/Nexmo/nexmo-java/issues/128

but nothing worked for me anyone having any idea how to solve this?


Solution

  • I got the same issue you can use this link as an reference

    (Getting Androidx library issue even though its not enabled in android project)

    or

    You can directly Try to change minimum Android version >= 21 in your build.gradle

    android {
        compileSdkVersion 28
        buildToolsVersion '28.0.3'
    
        defaultConfig {
            applicationId "app.com.app"
            minSdkVersion 21
    }