编译无法完成:导致:com.android.tools.r8.编译失败异常:编译无法完成

  • 本文关键字:编译 失败 异常 r8 导致 com android tools java
  • 更新时间 :
  • 英文 :


我不明白为什么编译无法完成:

compilation failed to complete:Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete

这是我所拥有的:

apply plugin: 'com.android.application'
apply plugin: 'realm-android'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "ge.redefine.eomer9"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 5
        versionName "1.2.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    useLibrary 'org.apache.http.legacy'
}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.12'
    implementation('com.github.afollestad.material-dialogs:core:0.8.5.8@aar') {
        transitive = true
    }
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.android.support:percent:27.1.1'
    implementation 'com.squareup.okhttp3:okhttp:3.7.0'
    implementation 'com.google.code.gson:gson:2.8.0'
    implementation 'me.zhanghai.android.materialprogressbar:library:1.4.2'
    implementation 'uk.co.chrisjenx:calligraphy:2.2.0'
    implementation 'com.devbrackets.android:exomedia:4.2.1'
    implementation 'biz.kasual:materialnumberpicker:1.2.1'
    implementation 'com.github.jkwiecien:FloatingSearchView:1.1.2'
    implementation 'com.github.silvestrpredko:dot-progress-bar:0.1.4@aar'
    implementation 'org.parceler:parceler-api:1.1.9'
    annotationProcessor 'org.parceler:parceler:1.1.9'
    implementation ('com.weiwangcn.betterspinner:library-material:1.1.0') {
        exclude group: 'com.android.support', module: 'appcompat-v7'
    }
}

我对aar也有同样的问题。尝试仅编译而不是实现

compileOnly "com.github.silvestrpredko:dot-progress-bar:0.1.4@aar"

最新更新