简体   繁体   English

Android Studio Electric Eel 后构建失败 | 2022.1.1更新

[英]Build Fail after Android Studio Electric Eel | 2022.1.1 update

Gradle build failed after android studio update. Gradle 工作室更新后 android 构建失败。 It typically does after updates, but this time invalidating caches and restarting didn't help.它通常在更新后执行,但这次使缓存无效并重新启动没有帮助。 It's not giving me much, just says 'myprojectname' failed in build log.它并没有给我太多,只是在构建日志中说“myprojectname”失败。 It shows my main activity in red in manifest as an unresolved class, also google imports are unresolved.它在清单中以红色显示我的主要活动为未解决的 class,谷歌导入也未解决。

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

If this happens to you, try (tab)Build/Rebuild Project.如果您遇到这种情况,请尝试 (tab)Build/Rebuild Project。 It created a gradle sync error message on the bottom, suggesting upgrading,and clicking this eventually leads you to prompts for downloading and resyncing upgraded gradles (took about half an hour).它在底部创建了一条 gradle 同步错误消息,建议升级,单击此最终会提示您下载并重新同步升级后的 gradles(大约需要半小时)。 Would have been nice to have gotten a prompt from the start with the failed after studio upgrade build attempt.如果在工作室升级构建尝试失败后从一开始就得到提示,那就太好了。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM