【问题标题】:Jsoup program type already presentJsoup 程序类型已存在
【发布时间】:2018-12-10 10:25:04
【问题描述】:

我在我的 Java 应用程序中使用 JSoup 解析我的 HTML 响应,但是当我添加实现时,我得到以下信息:

程序类型已经存在:org.jsoup.Connection$KeyVal Message{kind=ERROR, text=程序类型已存在: org.jsoup.Connection$KeyVal, sources=[未知源文件], 工具 name=Optional.of(D8)}

我想知道以前有人经历过吗?我将在下面添加完整的 build.gradle,我正在运行最新的 SDK。

apply plugin: 'com.android.application'
       android {    compileSdkVersion 28    defaultConfig {
       applicationId "uareloadedapp"
       minSdkVersion 26
       targetSdkVersion 28
       versionCode 1
       versionName "1.0"
       testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"    }    buildTypes {
       release {
           minifyEnabled false
           proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
       }    }    productFlavors {    } }
       dependencies {    implementation fileTree(dir: 'libs', include: ['*.jar'])    implementation (name: 'wikitudesdk', ext:'aar')    implementation 'com.google.ar:core:1.1.0'    implementation 'com.android.support:appcompat-v7:28.0.0'    implementation 'org.altbeacon:android-beacon-library:2.15.2'    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 'com.android.support:recyclerview-v7:28.0.0'    implementation 'com.squareup.picasso:picasso:2.5.2'    implementation "com.android.support:support-core-utils:28.0.0"    implementation 'com.android.support:support-v4:28.0.0'    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'    implementation 'org.jsoup:jsoup:1.11.3'
       } repositories {    flatDir{
       dirs 'libs'    } }

【问题讨论】:

    标签: java android jsoup build.gradle


    【解决方案1】:

    检查是否有任何您已添加为依赖项并且也在 libs 文件夹中的内容。那是我的问题。从lib文件夹中删除文件修复它

    【讨论】:

      猜你喜欢
      • 2019-07-28
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多