在 Android Studio 中找不到模块应用程序的 Gradle build-info.xml [英] Gradle build-info.xml not found for module app in Android Studio

查看:65
本文介绍了在 Android Studio 中找不到模块应用程序的 Gradle build-info.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到模块应用程序的 Gradle build-info.xml.请确保您使用的是 gradle 插件 gradle:2.0.0-alpha 或更高版本

Gradle build-info.xml not found for module app. Please make sure that you are using gradle plugin gradle:2.0.0-alpha or greater

我在 gradle:2.0.0-beta2 中使用了 gradle 插件.我随机收到此警告,此后经常要么应用程序未更新,要么崩溃.清理和重建就足以解决问题.

I'm using the gradle plug in gradle:2.0.0-beta2. I randomly get this warning and after this very often either the app is not updated or it crashes. It is enough to clean and rebuild to fix the issue.

有没有更好的方法来解决它?

Is there any better way to fix it?

推荐答案

对我来说,它发生在 Mac 上,但在 Windows 上它一直运行良好.自从我将 Android Studio 更新到 2.0 测试版后,这个问题一直存在,直到正式的 2.0 Android Studio 版本.

For me it happens on the Mac, but on Windows it works fine all the time. Ever since I updated Android Studio to version 2.0 beta, the issue was still present until official 2.0 Android Studio version.

在 Android Studio 中禁用即时运行 -> 首选项 (搜索即时运行"或) -> 构建、执行、部署" -> 即时运行 -> 启用即时运行 -> 关闭

What helped was disabling Instant Run in Android Studio -> Preferences (search for "instant run" or) -> "Build, Execution, Deployment" -> Instant Run -> Enable Instant Run -> turn off

这篇关于在 Android Studio 中找不到模块应用程序的 Gradle build-info.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆