android - 程序类型已经存在 : com. google.android.gms.actions.ItemListIntents

标签 android gradle

在关注 this 之后,我正在尝试设置 Google GMS 许可证以在我的应用程序中显示使用过的库的许可证。从谷歌网站尝试运行应用程序时出现以下错误

Program type already present: com.google.android.gms.actions.ItemListIntents
Message{kind=ERROR, text=Program type already present: com.google.android.gms.actions.ItemListIntents, sources=[Unknown source file], tool name=Optional.of(D8)}

我该如何解决这样的错误?

最佳答案

这意味着您的项目中已经有 google-play-services 库......可能在项目的某些模块或依赖项中。

删除其中一个,错误就会消失。

关于android - 程序类型已经存在 : com. google.android.gms.actions.ItemListIntents,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52167590/

相关文章:

java - 仅获取 'Date' 之前的秒数

android - 将 native Android 应用程序转换为 gradle-experimental 0.2.0

java - 为什么我的 Spring Boot Web 应用程序无法在 Gradle 中完全运行?

java - 哪个 Android 库决定最初启动的应用程序和 Activity?

android - 应用程序在后台崩溃

java - Activity 和服务之间的事件总线通信

java - 将 Gradle 支持添加到 IntelliJ 项目的最佳方式

c# - 在切换组中按下切换按钮调用多个按钮

gradle - Gradle:使用目录变量

找不到 Gradle Liquibase 更改日志文件