错误:任务":p rocessDebugResources"的执行失败。> 无法执行 aapt



我知道之前有非常相似的问题,但在我进行任何重大更改之前,我想我会先在这里发布问题。

这是我遇到的错误。我的build.gradle是这样的

android {
    compileSdkVersion 27
    buildToolsVersion '26.0.2'
    defaultConfig {
        applicationId "com.microsoft.graph.helpdesk"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            multiDexEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/maven/com.google.guava/guava/pom.properties'
        exclude 'META-INF/maven/com.google.guava/guava/pom.xml'
    }
    configurations {
        all {
            resolutionStrategy.force 'com.android.support:support-annotations:23.4.0'
        }
    }
    defaultConfig {
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    defaultConfig {
        vectorDrawables.useSupportLibrary = true
    }
}
dependencies {
    // Azure AD
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.google.firebase:firebase-core:11.8.0'
    implementation 'com.android.support:support-vector-drawable:27.1.0'
    implementation 'com.android.support:cardview-v7:27.1.0'
    implementation 'com.google.android.gms:play-services-maps:11.8.0'
    implementation 'com.android.support:appcompat-v7:27.1.0'
    implementation 'com.github.baoyachi:StepView:1.9'
    implementation 'com.github.vipulasri:timelineview:1.0.6'
    compile(project(':o365-auth'))
    // Dagger compiler for DI annotation support
    annotationProcessor 'com.squareup.dagger:dagger-compiler:1.2.5'
    provided('com.squareup.dagger:dagger-compiler:1.2.5')
    // Butterknife
    annotationProcessor 'com.jakewharton:butterknife:6.1.0'
    compile 'com.jakewharton:butterknife:6.1.0'
    compile 'com.microsoft.graph:msgraph-sdk-android:1.1.0'
    compile 'joda-time:joda-time:2.9.4'
    compile 'com.google.guava:guava:19.0'
    compile 'com.android.volley:volley:1.1.0-rc2'
    compile 'com.android.support:design:27.0.2'
    // Test libraries
    androidTestCompile 'com.android.support:support-annotations:23.4.0'
    //noinspection GradleCompatible
    androidTestCompile 'com.android.support.test:runner:0.5'
    androidTestCompile 'com.android.support.test:rules:0.5'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
    androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
    androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.2'
}
allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}
apply plugin: 'com.google.gms.google-services'

我已经尝试了我能找到的所有其他解决方案,但到目前为止没有任何效果。如果有人有任何帮助,将不胜感激

[编辑] 我实际上尝试使用 API 27 运行其他三个项目,但遇到了同样的错误。

在项目":o365-auth"帮助我编译它;尝试ADAL最新版本或设计而不是Appcompat等

dependencies {
//    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:design:25.1.0'
    // Dependency injection
    compile 'com.squareup.dagger:dagger:1.2.5'
    provided 'com.squareup.dagger:dagger-compiler:1.2.5'
    // Azure AD
    compile 'com.microsoft.aad:adal:1.12.0'
}

compile(project(':o365-auth'((有类似的问题;上一篇 23 和 23.0.3 一切正常

尝试过高年级,但在 25 上也存在相同的问题

最新更新