【问题标题】:Adding TUNE to android将 TUNE 添加到 android
【发布时间】:2015-12-29 14:04:17
【问题描述】:

我添加了这个依赖:

compile 'com.google.android.gms:play-services-location:7.5.0'
compile 'com.google.android.gms:play-services-ads:+'

但是,在同步时,我收到以下消息:

错误:任务 ':app:processDebugResources' 执行失败。> 错误: 多个包名称为“com.google.android.gms”的库你 可以暂时禁用此错误 android.enforceUniquePackageName=false 但是,这是暂时的 将在 1.0 中强制执行

【问题讨论】:

  • 发布您的总数build.gradle

标签: android android-layout sdk


【解决方案1】:

错误:任务 ':app:processDebugResources' 执行失败。> 错误: 多个库,包名称为 'com.google.android.gms'You 可以暂时禁用此错误 android.enforceUniquePackageName=false然而,

首先发布您的总数build.gradle

您只能使用一个 .您有 two same type 库。致电其中一个两者都不需要

compile 'com.google.android.gms:play-services-location:7.5.0' // Use this 
compile 'com.google.android.gms:play-services-ads:+'

然后清理-重建-重启

【讨论】:

    猜你喜欢
    • 2018-02-26
    • 2013-03-28
    • 2018-11-20
    • 1970-01-01
    • 2011-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多