Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-support-core-utils.version'

I added BottomNavigationView and then things started to complicate. I don't know what's causing this error, when I build project it's okay but then when I want to play app in emulator - this error pops up.

Here is my build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.pokrz.x"
        minSdkVersion 22
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation 'com.parse:parse-android:1.16.3'
    implementation 'com.google.android.material:material:1.0.0-beta01'
}

repositories {
    mavenCentral()
}

I don't know what else I can do. I'm sooooo done with it.

like image 716
nvko Avatar asked Jul 22 '18 13:07

nvko


People also ask

How to resolve more than one file found with OS independent path?

More than one file was found with OS independent path 'constant-values.html' To resolve it, I had to enable packages view ( 1) in Android Studio, then browse through the tree to libraries, and locate the duplicates ( 2) Then, ctrl+alt+f12 (or RMB menu) ( 3) - and found libraries which caused the issue.

How to get stack trace from OS independent path in Android?

More than one file was found with OS independent path 'META-INF/androidx.lifecycle_lifecycle-runtime.version' Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

How to fix error'more than one file was found?

Error: More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro' Solution: All you have to do to fix this is to add this to the android { } section in your app's 'build.gradle' Show activity on this post.


1 Answers

Build > Clean Project helped me.

like image 169
Dmitry Isaev Avatar answered Sep 23 '22 11:09

Dmitry Isaev