Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate classes when importing this project into mine #220

Open
71walceli opened this issue Jun 7, 2022 · 5 comments
Open

Duplicate classes when importing this project into mine #220

71walceli opened this issue Jun 7, 2022 · 5 comments

Comments

@71walceli
Copy link

Hi!

I wal just trying out your project into an ongoing one... But when I tried building, It didn't work, and I got tons of errer of duplicate classes, like this:

Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.7.0-runtime (androidx.core:core:1.7.0) and support-v4-22.2.1-runtime (com.android.support:support-v4:22.2.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.7.0-runtime (androidx.core:core:1.7.0) and support-v4-22.2.1-runtime (com.android.support:support-v4:22.2.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.7.0-runtime (androidx.core:core:1.7.0) and support-v4-22.2.1-runtime (com.android.support:support-v4:22.2.1)
...

Go to the documentation to learn how to Fix dependency resolution errors.

This is my app gradle file:

plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
}

android {
    compileSdk 32

    defaultConfig {
        applicationId "com.example.controlasistenciafincalolita.clientemovil"
        minSdk 18
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
    buildFeatures {
        viewBinding true
    }
}

dependencies {

    implementation 'com.journeyapps:zxing-android-embedded:4.2.0'
    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
    implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
    implementation 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2' // (v4.5)
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

These errors go away as soon as I comment out any code and dependencies of this repo.

I appreciate your help. I'll gladly provide any other details needed.

Regards!

@71walceli 71walceli changed the title Duplicate classes when importing this project Duplicate classes when importing this project into mine Jun 7, 2022
@fergardi
Copy link

I'm having this error as well. Were you able to solve it? Or did you use another library for icons + text?

@71walceli
Copy link
Author

Not really. I don't remember solving it or working around it, which I'd gladly comment here...

@71walceli
Copy link
Author

By what you said, it didn't get fixed with last version...

@71walceli
Copy link
Author

This one is no longer maintained. Just look at llast commit date... I'm afraid whoever used this is out of luck...

@71walceli
Copy link
Author

At that time, I worked around it by importing Font Awesome TTF and using corresponding escape sequences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants