Please provide a more detailed explanation of why you need both these libraries. Keep in mind that, though we are knowledgeable in the general subject matters covered by Arduino, we don't necessarily know anything about these specific libraries or even about firebase.
Please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded the libraries from. Or if you installed it using Library Manager (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.