无法运行或调试项目,但 gradle build+install 工作

编程入门 行业动态 更新时间:2024-10-14 08:21:58
本文介绍了无法运行或调试项目,但 gradle build+install 工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

更新到 Android studio 3.6 Canary11 (macOS) 后,我无法运行或运行我的项目的 Debug 变体(Release 变体工作正常).

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

这篇关于无法运行或调试项目,但 gradle build+install 工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-15 04:36:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/857590.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   工作   build   gradle   install

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!