gpt4 book ai didi

java - 包名称为 'com.google.android.gms.license' 的多个库

转载 作者:行者123 更新时间:2023-11-29 06:50:40 25 4
gpt4 key购买 nike

我正在使用 angular 4 和 ionic 3。现在当我运行“ionic cordova run android”时它给了我以下错误:

 "more than one library with package name 'com.google.android.gms.license'"

我的 project.property 文件:

target=android-26

android.library.reference.1=CordovaLib
cordova.system.library.1=com.android.support:support-v4:27.1.0
cordova.system.library.2=com.android.support:support-v4:27.1.0
cordova.system.library.3=com.android.support:support-v4:27.1.0
cordova.system.library.4=com.android.support:appcompat-v7:25.+
cordova.gradle.include.1=cordova-plugin-firebase/starter-build.gradle
cordova.system.library.5=com.google.gms:google-services:+
cordova.system.library.6=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.7=com.google.firebase:firebase-core:+
cordova.system.library.8=com.google.firebase:firebase-messaging:+
cordova.system.library.9=com.google.firebase:firebase-crash:+
cordova.system.library.10=com.google.firebase:firebase-config:+

我在 build.gradle 文件中的依赖:

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
compile "com.android.support:support-v4:27.1.0"
compile "com.android.support:appcompat-v7:25.+"
compile "com.google.gms:google-services:+"
compile "com.google.android.gms:play-services-tagmanager:+"
compile "com.google.firebase:firebase-core:+"
compile "com.google.firebase:firebase-messaging:+"
compile "com.google.firebase:firebase-crash:+"
compile "com.google.firebase:firebase-config:+"
// SUB-PROJECT DEPENDENCIES END
}

提前致谢:)

最佳答案

请更新你的build.gradle文件

dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}

将您的版本更改为 2.3.0

它对我有用...谢谢

关于java - 包名称为 'com.google.android.gms.license' 的多个库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49406185/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com