繁体   English   中英

错误:任务':processDebugResources'的执行失败。 >无法执行Aapt

[英]Error:Execution failed for task ':processDebugResources'. > Failed to execute 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都工作良好

尝试了较高的gradle,但同样在25

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM