无法运行或调试项目

无法运行或调试项目

本文介绍了无法运行或调试项目,但可以进行构建和安装工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新到Android Studio 3.6 Canary11(macOS)之后,我无法运行也无法运行项目的Debug变体(发布变体工作正常).

After update to Android studio 3.6 Canary11 (macOS) I cannot run nor run Debug variants of my project (Release variants working fine).

当我尝试运行项目时,出现错误:

When I try to run the project I've got error:

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
  > Entry name 'firebase-abt.properties' collided

但是当我删除构建目录(rm -rf app/build)时,我可以运行/调试项目一次.第一次运行后,再次出现相同的碰撞错误.

But when I delete build directory (rm -rf app/build), I can run/debug project once time. After the first run, it is again with the same error with collision.

我尝试清除缓存,重新启动Android Studio,但这没有帮助.

I try clear cache, restart the Android studio, but it didn't help.

也许它与Android Studio无关,因为不同的项目运行正常.您有什么想法吗,可能是什么问题?

Maybe it is not related to Android studio, because different project running ok.Do you have any idea, what the problem may be?

推荐答案

我遇到了与 MrEngineer13 相同的错误.经过数小时的努力,您必须删除已构建的APK文件,该项目才能成功构建另一个APK

I was facing the same error as MrEngineer13. After hours of struggle turns out you have to delete the built APK files for the project to build another APK successfully

这篇关于无法运行或调试项目,但可以进行构建和安装工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 10:37