Android Gradle Build Error:Some file crunching failed, see logs for details解决办法

在app:下的build.gradle文件夹中加入如下两行代码:

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

如:

android {
    compileSdkVersion 26
    buildToolsVersion "25.0.2"

    aaptOptions.cruncherEnabled = false
    aaptOptions.useNewCruncher = false

    defaultConfig {
        applicationId "com.bxph.p2p"
        minSdkVersion 14
        targetSdkVersion 26
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_7
            targetCompatibility JavaVersion.VERSION_1_7
        }
    }

再次构建,如果还是不行,就试试升级gradle

你可能感兴趣的:(Android Gradle Build Error:Some file crunching failed, see logs for details解决办法)