错误:文件路径窗口太长,保持低于240个字符 [英] Error: File path too long on windows, keep below 240 characters

查看:790
本文介绍了错误:文件路径窗口太长,保持低于240个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我做了一些改变,以我的build.gradle(应用程序)文件和Android工作室给了我这个错误(打开更好的视觉效果在新标签页图):

So, I made some changes to my build.gradle(app) file and android studio gives me this error (open the image in new tab for better viewing):

我的build.gradle(应用程序)文件(这是不是编辑的文件,我删除code和仍然没有运气/解决方案的新线路。):

My build.gradle(app) file (this is not the edited file, I deleted new lines of code and still no luck/solution.):

一切都相当顺利工作,直到我做了的build.gradle(应用程序)文件中的一些变化,但后来我删除了codeS和Android工作室的新生产线仍继续给我的错误。
该错误涉及的编译com.google.android.gms:发挥服务:8.3.0
我试图删除/重命名规定的文件夹内的PNG图像,但是当我重建项目中,PNG图像自动下载。
我的build.gradle(项目)文件中包含的类路径com.android.tools.build:gradle:1.5.0。我想知道是什么原因导致这个错误,以及如何解决它?非常感谢。

Everything was quite working well until I made some changes in the build.gradle(app) file, but then I deleted those new lines of codes and android studio is still keep giving me the error. The error relates to the compile 'com.google.android.gms:play-services:8.3.0'. I have tried deleting/renaming those png images inside the stated folder,but then when I rebuild the project, the png images are automatically downloaded. My build.gradle(project) file contains classpath 'com.android.tools.build:gradle:1.5.0'. I want to know what causes this error, and how to fix it? Many thanks.

推荐答案

我只是碰到了同样的问题。我不知道你的具体问题的修正,但我发现周围的工作;我看到你的项目有一个深刻的文件路径的层次结构。为什么不只是从一个较低的水平移动你的项目吗?

I just ran into the same issue. I don't know a fix for your exact problem, but I found a work around; I see your project has a deep file path hierarchy. Why not just move your project up from a lower level?

例如: C:\\项目\\ YourProject

这解决了这个问题对我来说。

That fixed the problem for me.

这篇关于错误:文件路径窗口太长,保持低于240个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆