所以,我对 build.gradle(app) 文件进行了一些更改,android studio 给了我这个错误(在新选项卡中打开图像以便更好地查看):
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(app) 文件(这不是编辑后的文件,我删除了新的代码行,但仍然没有运气/解决方案.):
My build.gradle(app) file (this is not the edited file, I deleted new lines of code and still no luck/solution.):
在我对 build.gradle(app) 文件进行一些更改之前,一切都运行良好,但后来我删除了那些新的代码行,android studio 仍然不断给我错误.该错误与compile 'com.google.android.gms:play-services:8.3.0'有关.我曾尝试删除/重命名指定文件夹中的那些 png 图像,但是当我重建项目时,会自动下载 png 图像.我的 build.gradle(project) 文件包含 classpath '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:ProjectsYourProject
这解决了我的问题.
这篇关于错误:Windows 上的文件路径太长,请保持在 240 个字符以下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
更新到 Android Build Tools 25.1.6 GCM/FCM 后出现 IncompIncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出现 Incompatible
如何在 gradle 中获取当前风味How to get current flavor in gradle(如何在 gradle 中获取当前风味)
如何修复“意外元素<查询>在“清单How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修复“意外元素lt;查询gt;在“清单中找到错误
基于 Android Gradle 中多风味库的多风味应用Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多风味库的多风味应用)
Android 依赖在编译和运行时有不同的版本Android dependency has different version for the compile and runtime(Android 依赖在编译和运行时有不同的版本)
本地 aar 库的传递依赖Transitive dependencies for local aar library(本地 aar 库的传递依赖)