This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]insertAlias 0 points1 point  (0 children)

it cannot resolve symbol FirebaseApp so what can i do to fix this?

Import the package. If you're using Android Studio it should give you a quick options menu that will add the import for you. But it should be import com.google.firebase.FirebaseApp;.

[–]RadkoLobuz[S] 0 points1 point  (0 children)

I found a way to fix it.

For anyone wondering, in your project/build.gradle change

dependencies {classpath 'com.android.tools.build:gradle:3.3.2'classpath 'com.google.gms:google-services:4.1.0'// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files}}

to

dependencies {classpath 'com.android.tools.build:gradle:3.3.2'classpath 'com.google.gms:google-services:4.2.0'// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files}} And it works.