错误:将字节码转换为dex时出错:原因:com.android.dex.DexException:多个dex文件定义Lokhttp3 / internal / ws / WebSocketReader;

时间:2018-03-10 12:15:23

标签: android multidex android-multidex

我面临上面的multidex错误。据我所知,我试图用多种方式解决,我试图找到类似的问题。有许多与multidex相关的问题,但所有场景都试图应用于我的代码但未解决我的问题。

我的依赖关系如下:

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:support-core-utils:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.1'

implementation 'com.intuit.sdp:sdp-android:1.0.4'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'io.socket:socket.io-client:0.8.2'
implementation files('libs/client-sdk.aar')
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
    transitive = true;
}

compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.3.0'

compile 'com.android.support:multidex:1.0.1'
implementation 'com.android.support:support-annotations:28.0.0-alpha1'}

我遇到这个问题是因为WebSocketReader类来自多个依赖,因为我可以理解这个问题并且它来自改造。但不确定。

提前致谢。

0 个答案:

没有答案
相关问题