我将aws s3、jwplayer和squareUp的libs更新到最新版本。现在我收到“多个dex文件”消息。我看过每一篇关于这件事的文章,并尝试了建议。一点运气都没有。
../Gradlew依赖项显示:
+--- com.amazonaws:aws-android-sdk-s3:2.4.0
| +--- com.amazonaws:aws-android-sdk-core:2.4.0 (*)
| +--- com.amazonaws:aws-android-sdk-kms:2.4.0
| | \--- com.amazonaws:aws-android-sdk-core:2.4.0 (*)
| +--- org.apache.commons:commons-io:1.3.2
| | \--- commons-io:commons-io:1.3.2 -> 2.4
| +--- commons-io:commons-io:2.4
| \--- org.bouncycastle:bcprov-jdk16:1.44
我不知道还有没有格雷洛没有列出的其他参考资料。
以下是图书馆:
repositories {
mavenCentral()
}
dependencies {
compile'com.amazonaws:aws-android-sdk-cognito:2.4.0'
compile'com.amazonaws:aws-android-sdk-s3:2.4.0'
compile 'com.android.support:support-v4:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.android.support:percent:25.0.0'
compile 'com.google.android.gms:play-services-analytics:10.2.1'
compile 'com.facebook.android:facebook-android-sdk:4.20.0'
compile 'com.squareup.retrofit2:retrofit:2.2.0'
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile project(':jwplayer-android-sdk-2.4.2+159')
}
我们一定会感激你的帮助。
最佳答案
替代
compile 'com.amazonaws:aws-android-sdk-s3:2.4.0'
具有
compile ('com.amazonaws:aws-android-sdk-s3:2.4.0') {
exclude module: 'commons-io'
}
为我工作。干杯!