安卓错误: Execution failed for task ':app:buildInfoGeneratorDebug' .

标签 android android-studio gradle android-gradle-plugin

我正在开发一个 Android 应用程序,并且已经在手机上运行它一段时间了。随机我得到了这个错误:

Execution failed for task ':app:buildInfoGeneratorDebug'.
> No current or previous main artifacts. This should not happen.

我尝试过清除 .gradle 缓存、使缓存无效/重新启动均无济于事。

最佳答案

在虚拟设备上运行应用程序然后在物理设备上重新运行它后,它就可以工作了。奇怪的错误。

关于安卓错误: Execution failed for task ':app:buildInfoGeneratorDebug' .,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40941909/

相关文章:

java - 在 Android Studio 中将外部 Android 和 Java 项目添加到 Android 项目

android-studio - 如何更改 Android Studio 中的菜单字体?

linux - 在gradle中维护属性序列

android - 在抽屉导航菜单项中更改开关颜色

android - 如何通过IP连接摄像头?

android - 如果我更改 Android Studio 中某个元素的 ID,如何在整个代码中进行此更改?

java - NoClassDefFoundError与gradle,giraph和hadoop

gradle - 如何在IntelliJ/Kotlin中设置序列化?

android - 错误:Connection reset (Gradle sync failed: Connection reset)

android - 以编程方式使用选项卡更改 fragment 的选项卡索引