В моем проекте я использовал концепцию привязки данных.Теперь я хочу использовать ядро Firebase и Firebase в зависимости от отображения сообщений приложения.
Когда я добавляю следующую зависимость в свой app.gradle
реализация 'com.google.firebase: firebase-core: 16.0.6'
реализация 'com.google.firebase: firebase-inappmessaging-display: 17.0.4 '
Это вызывает следующую проблему
error: cannot find symbol
import android.databinding.DataBindingComponent;
^
symbol: class DataBindingComponent
location: package android.databinding
error: cannot find symbol
protected ActivityLoginBinding(DataBindingComponent _bindingComponent, View _root,
^
symbol: class DataBindingComponent
location: class ActivityLoginBinding
Я думаю, что добавление этих двух зависимостей не создает классы ActivityBinding в моем проекте.
Фрагмент кода из моего файла app.gradle
реализация 'com.google.android.gms: play-services-base: 16.0.1' реализация 'com.google.android.gms: play-services-maps: 16.0.0 '
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.4'
implementation 'com.google.firebase:firebase-invites:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
//annotationProcessor 'com.android.databinding:compiler:3.1.4'
annotationProcessor 'com.google.dagger:dagger-compiler:2.4'
implementation 'com.google.dagger:dagger:2.4'
compileOnly 'javax.annotation:jsr250-api:1.0'
Это библиотеки, которые я использовал в своем проекте.Когда я удаляю зависимость отображения сообщений в ядре и в приложении firebase, он работает как положено.
Пожалуйста, помогите мне решить эту проблему.Заранее спасибо.