简体   繁体   English

Android gradle构建突然在':app:mergeDebugResources'上失败,没有错误消息

[英]Android gradle build fails suddenly on ':app:mergeDebugResources' with no error messages

My gradle build stopped working completely out of the blue. 我的gradle版本完全无法正常工作。 Minute earlier it worked fine. 一分钟前,它工作正常。 Didn't change anything in gradle config files; 没有更改gradle配置文件中的任何内容; as a matter of fact I was only changing application style in XML. 实际上,我只是在更改XML中的应用程序样式。 Make, clean and run produce: 制作,清洁和运行农产品:

Execution failed for task ':app:mergeDebugResources'.
> -1

Running gradle with --stacktrace produces: 使用--stacktrace运行--stacktrace会产生:

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.

Removing build directory didn't help, as well as cache invalidation and restart. 删除构建目录无济于事,还有缓存无效和重新启动。 Any ideas? 有任何想法吗?

Using Canary (3.0) with build tools version 26.0.0. 在构建工具版本26.0.0中使用Canary(3.0)。

Update #1 更新#1

Running with --info --debug hints: 使用--info --debug提示运行:

could not find method google() for arguments [] on repository container.

However, removing google() from config yields: 但是,从配置中删除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表现得很奇怪。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Studio Gradle构建错误:: app:mergeDebugResources失败 - Android Studio gradle build error ::app:mergeDebugResources FAILED FAILURE Gradle Build因“错误:任务执行失败”而崩溃:app:mergeDebugResources'。 > Crunching Cruncher photo.png失败了“ - Gradle Build Fails Due to “Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher photo.png failed” Android Studio Gradle构建错误:app:mergeDebugResources,处理Cruncher loader.png失败 - Android Studio Gradle build error :app:mergeDebugResources, Crunching Cruncher loader.png failed 离子应用程序 - Android 应用程序构建卡在 app:mergeDebugResources 上,没有错误 - Ionic App - Android app build getting stuck on app:mergeDebugResources with no error Gradle不要建立在:app:mergeDebugResources失败上 - Gradle don't build on :app:mergeDebugResources failure Gradle构建失败,:app:mergeDebugResources失败 - Gradle Build Failed, :app:mergeDebugResources FAILED Gradle build faild app:mergeDebugResources FAILED - Gradle build faild app:mergeDebugResources FAILED gradle 构建时出现异常(任务:'app:mergeDebugResources') - Exception while gradle build (Task: 'app:mergeDebugResources') 使用NativeScript Sidekick的Android构建错误:app:mergeDebugResources - Android build error using NativeScript Sidekick: app:mergeDebugResources 在应用程序阶段构建 android 错误:mergeDebugResources,ParseError AttributeNSNotUnique - Build android error at stage app:mergeDebugResources, ParseError AttributeNSNotUnique
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM