Suddenly after implementing firebase many import statements becomes unused and can't resolve many symbols

46
September 03, 2019, at 2:50 PM

I'm new to Android, Was learning from youtube from following playlist

https://www.youtube.com/watch?v=d1T0ptCAs8A&list=PLraJmOvF9eeGyVClKdBaVU6O_XqQjNboS&index=5

In 4th video it was teaching to add Firebase, but it was old method as I got some new option on Firebase(Firebase was saying It needs only classpath 'com.google.gms:google-services:4.2.0')

suddenly after adding this line in build.graddel in project I saw that my previously working code have some errors

I tried Invalidate cashes and restart, cleaned projects and rebuild.

Answer 1

It seems you are mixing support library and androidx either use androidx(recommended) or support library follow https://developer.android.com/jetpack/androidx/migrate guide and after this make sure to make appropriate changes in layout xml files also.

Answer 2

Remove the dependencies with androidx starting. Because androidx is a different library than support library. You should only include one of them.

READ ALSO
Is there an event to check when the recipient answered the call?

Is there an event to check when the recipient answered the call?

I want to catch when the recipient gets a callTelephonyManager

41
How to whitelist installer package during kiosk mode/ lock task mode?

How to whitelist installer package during kiosk mode/ lock task mode?

I have created an kiosk application it has update functionality for other application within the device but the installer package is blockedHow to whitelist installer package?

28
Send text as well as image to rest API server using retrofit in android

Send text as well as image to rest API server using retrofit in android

I'm trying to create an app which will send images and a text message to the server using retrofit

35
I/qtaguid: Tagging socket 36 -Volley library error -Android

I/qtaguid: Tagging socket 36 -Volley library error -Android

I googled a lot of times for this issue that I suffer but no article helped me to find a solution to this problem

57