无法关闭文件 - Android studio(app:mergeDebugResources) [英] Failed to crunch file - Android studio (app:mergeDebugResources)
问题描述
我是currentyl试图实施Google ActivityRecognitionApi。然而,我得到以下错误:
lockquote
错误:无法收缩文件
C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\googlesamples-Android的播放位置2ed2964\ActivityProject\app\build\intermediates\exploded-aar\com.google.android.gms\play服务铸-framework\10.0.1 \res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png
到
C:\Users\marschall\Desktop\googlesamples-Android的播放位置2ed2964\ActivityProject\\ \\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png
错误:执行失败任务':应用程序:mergeDebugResources'。错误:
未能紧缩文件
C:\Users\marschall\Desktop\googlesamples-Android的播放位置2ed2964\ActivityProject\app\build\intermediates\爆炸-aar\com.google.android.gms\play服务,铸造framework\10.0.1\res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png
到
C:\Users\marschall\Desktop\googlesamples-Android的播放位置2ed2964\ActivityProject\app\build\intermediates\res\merged\debug\drawable-xxhdpi-V4 \quantum_ic_forward_30_grey600_36.png
块引用>
我很新到Android的研究与开发和真的不知道该怎么办。
我欣赏任何评论。
预先致谢
编辑:
我的错误!忘记复制一些文件...
无法收缩文件意味着工作室无法处理文件。
它太长了,它已经达到了操作系统的最大文件路径。
- > 原始方式解决它将项目移动到C:\中的某个文件夹中。
- > 更好的方法是更改项目的构建目录在build.gradle文件中(Project)
allprojects {
buildDir =C:/ tmp / $ {rootProject .name} / $ {project.name}
。
。
}
i am currentyl trying to implement Google ActivityRecognitionApi. However i get following errors:
Error:Failed to crunch file C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png into C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png
Error:Execution failed for task ':app:mergeDebugResources'. Error: Failed to crunch file C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png into C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\quantum_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...
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}"
.
.
}
这篇关于无法关闭文件 - Android studio(app:mergeDebugResources)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!