Failed to crunch file – Android studio (app:mergeDebugResources)

Failed to crunch file means studio can’t process the file.
Its too long and it has reached the max file path line of the operating system.

-> Crude way to solve it is move the project to some folder in “C:\”.

-> Better way is to change the build directory of the project in the build.gradle file (Project)

allprojects {
    buildDir = "C:/tmp/${rootProject.name}/${project.name}"
    .
    .
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)