任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的执行失败。 “我尽了最大努力,但是我解决不了。”

时间:2018-12-12 20:54:47

标签: java android android-studio android-gradle build.gradle

更新Android Studio后出现此错误...

  

发现多个文件具有与操作系统无关的路径   'org / jsoup / nodes / entities-full.properties'

我的“应用Build.gradle”

read

我的“ project build.gradle”

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "info.androidhive.newsaggregator"
        minSdkVersion 16
        targetSdkVersion 28
        multiDexEnabled true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    //implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.facebook.android:facebook-android-sdk:4.11.0'
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
    implementation 'org.jsoup:jsoup:1.8.3'
    implementation 'com.github.siyamed:android-shape-imageview:0.9.3@aar'
    implementation files('libs/gson-2.2.2.jar')
    implementation files('libs/android-async-http-1.4.4.jar')
    implementation('com.github.florent37:materialviewpager:1.1.3@aar') {
        transitive = true
    }
    implementation 'com.github.clans:fab:1.6.3'

    repositories {
        mavenCentral()
    }
    implementation 'com.makeramen:roundedimageview:2.2.1'
    implementation project(':library')
}

我的“库Build.Gradle”

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

有人可以帮助我弄清楚是什么原因导致此错误吗? 关于如何使它工作的任何想法?如果您需要更多信息,请告诉我。我对此很陌生。提前非常感谢您。

0 个答案:

没有答案