Ошибка установки FirebaseUI

Я хочу использовать FirebaseUI RecyclerView.

Мое текущее приложение (build.gradle) выглядит следующим образом:

    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'com.google.firebase:firebase-storage:11.8.0'

Мое приложение отлично работает с этими настройками, но когда я включаю FirebaseUI, как в следующем фрагменте, мое приложение вылетает с сообщением об ошибке: "at com.google.firebase.storage.FirebaseStorage.getInstance(Unknown Source)"

    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'com.google.firebase:firebase-storage:11.8.0'

    implementation 'com.firebaseui:firebase-ui-database:3.2.1'

    testImplementation 'junit:junit:4.12'
    implementation 'com.squareup.picasso:picasso:2.71828'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

Спасибо,


person Dhiraj kadam    schedule 09.06.2018    source источник
comment
Тебе удалось заставить это работать, @Dhiraj?   -  person Levi Moreira    schedule 10.06.2018
comment
@LeviAlbuquerque Спасибо, чувак, сработало отлично :)   -  person Dhiraj kadam    schedule 10.06.2018
comment
Отлично :) Я рад, что смог вам помочь, не забудьте отметить как ответ, чтобы это могло помочь и другим;)   -  person Levi Moreira    schedule 10.06.2018
comment
@Dhiraj Пожалуйста, отметьте это как ответ, если вы ожидаете помощи с вашими вопросами в будущем.   -  person CEO tech4lifeapps    schedule 10.06.2018
comment
@CEOtech4lifeapps Я знаю, как проголосовать, и я это сделал. Кажется, в StackOverflow также есть функция, чтобы пометить это как ответ, хотя я не знаю об этой кнопке.   -  person Dhiraj kadam    schedule 10.06.2018
comment
@Dhiraj Просто нажмите на галочку под ответом!   -  person CEO tech4lifeapps    schedule 10.06.2018
comment
@CEOtech4lifeapps, спасибо за помощь. Я просто проверяю эту кнопку и помечаю этот вопрос как ответ.   -  person Dhiraj kadam    schedule 10.06.2018


Ответы (1)


Вам необходимо сопоставить версию firebase и версию firebase-ui. Используйте это:

 implementation 'com.firebaseui:firebase-ui-database:4.0.1'
 implementation 'com.google.firebase:firebase-database:16.0.1'
 implementation 'com.google.firebase:firebase-storage:16.0.1'
person Levi Moreira    schedule 09.06.2018