java-重复类com.google.android.gms Android Studio出现问题
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了java-重复类com.google.android.gms Android Studio出现问题,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2672字,纯文字阅读大概需要4分钟。
内容图文
![java-重复类com.google.android.gms Android Studio出现问题](/upload/InfoBanner/zyjiaocheng/670/a6b9a0fbe9ee492282ae8ed13993f967.jpg)
我有一个问题:
在模块classes.jar(com.google.android.gms:play-services-base:9.4.0)和classes.jar(com.google.android)中找到重复的com.google.android.gms.common.api.zza类.gms:play-services-basement:16.0.1)
您是否有解决此错误的想法?
我给你我的应用程序bluid.gradle ….
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
android {
compileSdkVersion 23
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
applicationId "fr.appli.test"
minSdkVersion 16
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
testOptions {
unitTests.returnDefaultValues = true
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test:runner:0.5') {
exclude group: 'com.android.support', module: 'support-annotations'
implementation 'com.google.android.gms:play-services-ads:17.2.0'
}
androidTestImplementation 'com.android.support.test:rules:0.4'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestImplementation ('com.android.support.test.espresso:espresso-contrib:2.2') {
exclude module: 'support-annotations'
exclude module: 'support-v4'
exclude module: 'support-v13'
exclude module: 'recyclerview-v7'
}
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
androidTestImplementation 'com.android.support:support-annotations:23.4.0
implementation 'com.android.support:preference-v14:23.4.0'
implementation 'com.android.support:design:23.4.0'
implementation 'com.android.support:cardview-v7:23.4.0'
implementation 'com.android.support:recyclerview-v7:23.4.0'
implementation 'com.google.android.gms:play-services-location:9.4.0'
implementation 'com.google.android.gms:play-services-maps:9.4.0'
implementation 'com.adobe.xmp:xmpcore:5.1.2'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.1'
implementation('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
}
在此先感谢您的帮助
解决方法:
您正在使用这些的旧版本
implementation 'com.google.android.gms:play-services-location:9.4.0'
implementation 'com.google.android.gms:play-services-maps:9.4.0'
尝试这些较新的版本
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
内容总结
以上是互联网集市为您收集整理的java-重复类com.google.android.gms Android Studio出现问题全部内容,希望文章能够帮你解决java-重复类com.google.android.gms Android Studio出现问题所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。