Мы довольно новички в android разработке приложений, и мы не могли понять эту ошибку. Поскольку мы пытаемся поместить уведомление сервера pu sh поверх нашего приложения службы картографирования в помещении, и мы столкнулись с этой ошибкой.
Мы использовали два API из нашей сборки, а именно Google Map API и AnyPlace API ( наша внутренняя информационная служба, которая позволяет нам включать план этажа на верхнем уровне OSM здания), если это поможет.
Если по-прежнему не хватает информации для решения проблемы, сообщите нам, и мы даст необходимые детали. Поэтому любая помощь очень ценится!
Дубликат класса com.google. android .gms.ads.identifier.AdvertisingIdClient находится в модулях classes.jar (com.google. android .gms. : play-services-ads-identifier: 15.0.1) и google-play-services.jar (google-play-services.jar)
Top Gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
App Gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 27
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
buildTypes {
debug {
debuggable = true
}
}
lintOptions {
abortOnError false
}
defaultConfig {
targetSdkVersion 27
minSdkVersion 16
}
dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
implementation project(':library')
implementation project(':actionbarsherlock')
implementation ('com.google.firebase:firebase-core:16.0.1')
implementation ('com.google.firebase:firebase-messaging:17.3.4')
}
}