我需要在App Messaging中实现Firebase
"Upgrade: something\r\n".
"Connection: something\r\n".
// ...
"Sec-WebSocket-Accept: something\r\n\r\n";
但是当我将它添加到gradle中时,它并不能让我成功添加,但是当我编译或运行时,会出现错误CoordinatorLayout $ Behavior或Lifecycle错误等
任何人都可以帮助我了解我做错了什么,我是开发新手,gradle不是我的强项
我认为这与一些内部依赖关系有关,我该如何解决这些问题,我什至不知道如何生成依赖关系图
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.3'
这是我的构建日志
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'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 27
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.wavehunt.dilangotaxi"
minSdkVersion 19
targetSdkVersion 27
versionCode 7
versionName "7.0"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.home_fragment.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath true
}
}
}
dexOptions {
preDexLibraries = false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
dependencies {
api 'ru.egslava:MaskedEditText:1.0.5'
implementation('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.6.2') {
transitive = true
}
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.6.2'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-config:16.1.0'
implementation 'com.google.firebase:firebase-firestore:17.1.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.gms:google-services:4.0.1'
implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
implementation 'com.github.TheBrownArrow:PermissionManager:1.0.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'gun0912.ted:tedbottompicker:1.0.12'
implementation 'com.akexorcist:googledirectionlibrary:1.1.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.bumptech.glide:glide:4.3.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.maps.android:android-maps-utils:0.5'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.google.android.gms:play-services-base:16.0.1'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.maps:google-maps-services:0.2.9'
implementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true
}
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// use kapt for Kotlin
// optional - RxJava support for Room
implementation "android.arch.persistence.room:rxjava2:$room_version"
// optional - Guava support for Room, including Optional and ListenableFuture
implementation "android.arch.persistence.room:guava:$room_version"
// Test helpers
testImplementation "android.arch.persistence.room:testing:$room_version"
implementation 'com.github.aliumujib:Nibo:2.0'
androidTestImplementation 'junit:junit:4.12'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
debugImplementation "io.objectbox:objectbox-android-objectbrowser:$objectboxVersion"
}
apply plugin: 'io.objectbox'
apply plugin: 'com.google.gms.google-services'