gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 04:27:30 30 4
gpt4 key购买 nike

我的gradle版本完全无法正常工作。一分钟前,它工作正常。没有更改gradle配置文件中的任何内容;实际上,我只是在更改XML中的应用程序样式。
制作,清洁和运行农产品:

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中使用Canary(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表现得很奇怪。

关于android - Android Gradle构建在 ':app:mergeDebugResources'上突然失败,没有错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44975268/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com