如何修复“错误:程序类型已存在:org.eclipse.jetty.websocket.client.io.UpgradeListener”

时间:2019-06-01 18:50:39

标签: java android eclipse websocket jetty

每次我尝试构建和运行我的应用程序时,都会得到 错误:程序类型已经存在:org.eclipse.jetty.websocket.client.io.UpgradeListener

我已经尝试排除某些组并尝试删除每个库

这是我的build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
defaultConfig {
    applicationId "de.profi.obsstreamdeck"
    minSdkVersion 15
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.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
}
buildToolsVersion '28.0.3'
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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 'org.eclipse.jetty.websocket:websocket-client:9.4.18.v20190429'
//implementation files('libs/gson-2.6.2.jar')
}

当我尝试在模拟器上构建并运行该应用程序时,我不断收到错误消息:“错误:程序类型已存在:org.eclipse.jetty.websocket.client.io.UpgradeListener”

0 个答案:

没有答案