程序类型已经存在com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult

时间:2018-07-08 06:08:17

标签: android gradle runtime-error

我从logcat收到此错误。

Program type already present: com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult
Message{kind=ERROR, text=Program type already present: com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult, sources=[Unknown source file], tool name=Optional.of(D8)}

这是我的build.gradle。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.yunjung.yunjung"
        minSdkVersion 23
        targetSdkVersion 28
        multiDexEnabled true
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    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.amazonaws:aws-java-sdk:1.11.361'
    implementation('com.amazonaws:aws-android-sdk-mobile-client:2.6.24@aar') { transitive = true }

    implementation 'com.amazonaws:aws-android-sdk-core:2.6.24'
    implementation 'com.amazonaws:aws-android-sdk-s3:2.6.24'
    implementation 'com.amazonaws:aws-android-sdk-ddb:2.6.24'
    implementation 'com.amazonaws:aws-android-sdk-rekognition:2.6.24'
}

0 个答案:

没有答案