Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

Error:Failed to crunch file C:UsersmarschallDesktopgooglesamples-android-play-location-2ed2964ActivityProjectappuildintermediatesexploded-aarcom.google.android.gmsplay-services-cast-framework10.0.1 esdrawable-xxhdpi-v4quantum_ic_forward_30_grey600_36.png into C:UsersmarschallDesktopgooglesamples-android-play-location-2ed2964ActivityProjectappuildintermediates esmergeddebugdrawable-xxhdpi-v4quantum_ic_forward_30_grey600_36.png

Error:Execution failed for task ':app:mergeDebugResources'. Error: Failed to crunch file C:UsersmarschallDesktopgooglesamples-android-play-location-2ed2964ActivityProjectappuildintermediatesexploded-aarcom.google.android.gmsplay-services-cast-framework10.0.1 esdrawable-xxhdpi-v4quantum_ic_forward_30_grey600_36.png into C:UsersmarschallDesktopgooglesamples-android-play-location-2ed2964ActivityProjectappuildintermediates esmergeddebugdrawable-xxhdpi-v4quantum_ic_forward_30_grey600_36.png

I am very new to Android developement and really dont know what to do.

I appreciate any comments.

Thanks in advance

EDIT: My mistake! Forgot to copy some files...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
307 views
Welcome To Ask or Share your Answers For Others

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...