Android Studio - Cannot Resolve Symbol 'Firebase'

(Android & Firebase) Cannot resolve symbol 'dataSnapshot'

You are seeing that dataSnapshot in red because there is no such object present in your code. Most likely you should use the snapshot object that is present as an argument. So please change the following line of code:

music_id = dataSnapshot.getValue("Playlist_Id");

To:

music_id = snapshot.getValue("Playlist_Id");

Cannot resolve symbol 'firebase', even with updated gradle files

It happens because you are using the javascript code and the web implementation in a java class and it can't work.

In your case you have to use the Android implementation, in java or kotlin.



Related Topics



Leave a reply



Submit