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

后端 未结 9 1638
孤城傲影
孤城傲影 2020-12-08 13:15

i am currentyl trying to implement Google ActivityRecognitionApi. However i get following errors:

Error:Failed to crunch file C:\\Users\\marschall\\

9条回答
  •  情话喂你
    2020-12-08 14:08

    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}"
        .
        .
    }
    

提交回复
热议问题