Android gradle构建在';上突然失败:app:mergeDebugResources';没有错误消息
我的渐变身材突然停止了工作。几分钟前,它工作得很好。没有更改gradle配置文件中的任何内容;事实上,我只是在改变XML中的应用程序样式。 制造、清洁和运行生产:Android gradle构建在';上突然失败:app:mergeDebugResources';没有错误消息,android,android-studio,gradle,kotlin,Android,Android Studio,Gradle,Kotlin,我的渐变身材突然停止了工作。几分钟前,它工作得很好。没有更改gradle配置文件中的任何内容;事实上,我只是在改变XML中的应用程序样式。 制造、清洁和运行生产: Execution failed for task ':app:mergeDebugResources'. > -1 使用--stacktrace运行gradle会产生: Executing task ':app:mergeDebugResources' (up-to-date check took 0.031 secs) d
Execution failed for task ':app:mergeDebugResources'.
> -1
使用--stacktrace
运行gradle会产生:
Executing task ':app:mergeDebugResources' (up-to-date check took 0.031 secs) due to:
Task ':app:mergeDebugResources' class path has changed from 35ff0c585719dc5a2e2e4d58900e722a to 01ad85243d44a7018a6f6b671ff7bf6b.
All input files are considered out-of-date for incremental task ':app:mergeDebugResources'.
Unable do incremental execution: full task run :app:mergeDebugResources FAILED :app:mergeDebugResources
(Thread[Task worker for ':',5,main]) completed.
Took 0.155 secs.
删除生成目录没有帮助,缓存失效和重新启动也没有帮助。有什么想法吗
在构建工具版本26.0.0中使用金丝雀(3.0)
更新#1
使用--info--debug
提示运行:
could not find method google() for arguments [] on repository container.
但是,从配置中删除google()
Received result
Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring root project '[project name]'.] from daemon DaemonInfo{pid=3686, address=[e01105f7-0954-4e44-b561-3ac18fc3194f port:35854, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]], idle=true, lastBusy=1499443736429, context=DefaultDaemonContext[uid=64f95479-4418-4e3d-948b-7481648b65df,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonRegistryDir=/home/iwoherka/.gradle/daemon,pid=3686,idleTimeout=10800000,daemonOpts=-Xmx1536m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
18:09:26.648 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
18:09:26.649 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop
嗯,原来问题是res
目录中的字体,而不是main
,这导致gradle的行为非常怪异。嗯,原来问题是res
目录中的字体而不是main
,这导致gradle的行为非常怪异。尝试使用--debug--info运行gradle
“在存储库容器上找不到参数[]的方法google()。嗯,这很奇怪。你可以使用maven{url'https://maven.google.com“}
而不是google()
。您使用的是哪种金丝雀释放装置?金丝雀5。它现在在LocationAwareException上失败。请尝试使用--debug--info
“在存储库容器上找不到参数[]的方法google()”,运行gradle。嗯,这很奇怪。你可以使用maven{url'https://maven.google.com“}
而不是google()
。您使用的是哪种金丝雀释放装置?金丝雀5。它现在在LocationAwareException上失败。