Тип программы Android уже присутствует: BufferOverflowException

Я разработал приложение для Android на Android Studio 3.2.1 и импортировал модуль aar для чтения идентификационных карт ОАЭ, я могу запустить приложение на своем устройстве без каких-либо проблем.

Я попытался создать файл APK (отладочный / подписанный) для своего приложения, но получаю такую ​​ошибку:

Program type already present: com.acs.smartcard.BufferOverflowException

где com.acs.smartcard - это имя пакета модуля.

Файл моего приложения build.gradle:

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }

}


android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "biz.wasel.driver"
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 3
        versionName "1.0.4"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled = true
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.android.support:support-annotations:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test:rules:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-intents:3.0.2'

    implementation 'android.arch.lifecycle:extensions:1.1.1'

    implementation 'com.android.volley:volley:1.1.0'

    implementation 'com.google.code.gson:gson:2.8.4'

    implementation 'com.squareup.picasso:picasso:2.71828'

    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation 'com.google.android.gms:play-services-location:15.0.1'

    implementation 'com.android.support:design:28.0.0'

    implementation 'com.google.firebase:firebase-messaging:17.0.0'

    implementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

    implementation 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'

    implementation 'me.philio:pinentryview:1.0.6'
    implementation 'com.poovam:pin-edittext-field:1.0.3'

    implementation 'com.android.support:support-compat:28.0.0'
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'

    implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'

    implementation 'de.hdodenhof:circleimageview:2.2.0'

    implementation 'com.ramotion.cardslider:card-slider:0.2.0'

    implementation 'com.android.support:preference-v7:28.0.0'

    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'

    implementation 'com.yarolegovich:discrete-scrollview:1.4.7'

    implementation 'net.gotev:uploadservice:3.4.2'

    implementation 'com.github.esafirm.android-image-picker:imagepicker:1.13.1'

    implementation 'android.arch.paging:runtime:1.0.0'

    implementation 'com.github.ome450901:SimpleRatingBar:1.4.2'
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.4@aar') {
        transitive = true;
    }

    implementation 'id.zelory:compressor:2.1.0'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.github.gmazzo:nestedscroll-maps:0.4'
    implementation 'com.hanks.animatecheckbox:library:0.1'
    implementation 'com.sothree.slidinguppanel:library:3.4.0'
    implementation 'com.hbb20:ccp:2.1.2'
    implementation 'com.github.Binary-Finery:Bungee:master-SNAPSHOT'
    implementation 'com.github.gcacace:signature-pad:1.2.1'
    implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'

    implementation project(':acs-plugin-release')
    implementation project(':EIDAToolkit')
}
apply plugin: 'com.google.gms.google-services'

и мой уровень проекта build.gradle

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.google.gms:google-services:4.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        maven { url 'http://maven.microblink.com' }


    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Примечание: Когда я прокомментировал

implementation project(':acs-plugin-release')

form app build.gradle Я могу без проблем сгенерировать APK, но мне нужен этот модуль, чтобы закончить приложение. Я пробовал много решений от здесь и здесь, но они не работали!

Любая помощь, пожалуйста ?!

Спасибо

'com.ramotion.cardslider: card-slider: 0.2.0' отметьте эту строку

suresh madaparthi 14.11.2018 11:03

@sureshmadaparthi Я добавил реализацию перед этим, но та же проблема.

Ahmed M. Abed 14.11.2018 11:13

реализация 'com.github.JakeWharton: ViewPagerIndicator: 2.4.1' добавить этот

suresh madaparthi 14.11.2018 11:23

@sureshmadaparthi извините, но это не решило проблему

Ahmed M. Abed 14.11.2018 11:31

что за ошибка ты получаешь сейчас

suresh madaparthi 14.11.2018 11:38

@sureshmadaparthi то же самое: тип программы уже присутствует: com.acs.smartcard.BufferOverflowException

Ahmed M. Abed 14.11.2018 11:52

реализация 'com.android.support:appcompat-v7:27.0.1' использовать 27

suresh madaparthi 14.11.2018 12:15

реализация 'com.android.support:appcompat-v7:27.0.1' использовать 27

suresh madaparthi 14.11.2018 12:16

@sureshmadaparthi ничего не изменилось, та же ошибка: \

Ahmed M. Abed 14.11.2018 12:25
1
9
323
0

Другие вопросы по теме