Android App closes when adding Firebase and cardview

Asked

Viewed 93 times

0

Every time I add :

compile 'com.android.support:cardview-v7:27.+'

and

compile 'com.google.firebase:firebase-core:16.0.6'

Together the app just doesn’t work. How to resolve?

1 answer

0


Whoa, that’s all right!?

specify the full version, here I am using and working:

// CardView
implementation 'com.android.support:cardview-v7:27.1.0' 

//firebase
implementation 'com.google.firebase:firebase-auth:12.0.1'
implementation 'com.google.firebase:firebase-database:12.0.1'
implementation 'com.google.firebase:firebase-storage:12.0.1'
implementation 'com.google.android.gms:play-services-auth:12.0.1'

One day: use only the required firebase services for running your app, as I did above (specify what you want, such as auth, database, Storage, etc), so you won’t include all firebase libraries without need.

  • I ended up modifying the project and removing cardview, but now the messages from Firebase do not arrive.

  • there was no need, cards sooner or later you will need them

  • I don’t think so. Could you help me with another question? https://answall.com/questions/355493/fcm-firebase-messaging-service-com-o-app-inactive

  • I can, I’ll go check it out

Browser other questions tagged

You are not signed in. Login or sign up in order to post.