gpt4 book ai didi

android - Android Studio无法无故完成Gradle执行

转载 作者:行者123 更新时间:2023-12-03 05:01:47 26 4
gpt4 key购买 nike

自昨天以来,我遇到了一个非常奇怪的问题。如果我在Android Studio中使用运行按钮,有时Android Studio无法完成Gradle执行。

在Android Studio的gradle控制台中,我首先收到以下消息:

:app:compileDevelopmentDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

其次是:
:app:dexDevelopmentDebug
AGPBI: {"kind":"simple","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class","sources":[{}]}
AGPBI: {"kind":"simple","text":"(org.apache.commons.httpclient.HttpMethodBase$1) that doesn\u0027t come with an","sources":[{}]}
AGPBI: {"kind":"simple","text":"associated EnclosingMethod attribute. This class was probably produced by a","sources":[{}]}
AGPBI: {"kind":"simple","text":"compiler that did not target the modern .class file format. The recommended","sources":[{}]}
AGPBI: {"kind":"simple","text":"solution is to recompile the class from source, using an up-to-date compiler","sources":[{}]}
AGPBI: {"kind":"simple","text":"and without specifying any \"-target\" type options. The consequence of ignoring","sources":[{}]}
AGPBI: {"kind":"simple","text":"this warning is that reflective operations on this class will incorrectly","sources":[{}]}
AGPBI: {"kind":"simple","text":"indicate that it is *not* an inner class.","sources":[{}]}

然后gradle控制台说BUILD SUCCESSFUL,但是Android Studio给我错误消息“Gradle Running Failed to complete Gradle执行失败”,但没有原因(它为空,请参见图片)。

运行按钮不再可单击,我必须单击“使用gradle文件同步项目”。之后,我可以在设备上运行几次该应用程序,而没有上面发布的任何错误消息。几次后,再次显示相同的错误消息。

最佳答案

更新了最新的Android Studio版本1.3(测试版)后,问题解决了。控制台显示相同的警告,但Android Studio不会失败。

关于android - Android Studio无法无故完成Gradle执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31055428/

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