Solved Firebase error
-
I am trying to implement firebase sdk to my android app but i am getting the following error:
Java class com/google/firebase/FirebaseApp not found. Please verify the AAR which contains the com/google/firebase/FirebaseApp class is included in your app.
This error becomes when i am trying to do ::firebase::App::Create
Any idea?
-
@NickV
did you add the corresponding build dependencies (e.g. google play services) to your build.gradle file? -
Yes. I followed the instructions. My dependencies are the following:
compile 'com.google.firebase:firebase-core:12.0.1' compile 'com.google.firebase:firebase-auth:12.0.1' compile 'com.google.firebase:firebase-messaging:12.0.1' compile 'com.google.firebase.messaging.cpp:firebase_messaging_cpp@aar' compile 'com.google.android.gms:play-services-base:12.0.1'
I followed this article: https://medium.com/@shigmas/push-notifications-in-qt-for-ios-and-android-50c2f9a38444
-
Ok Problem solved. I had to enable use gradle from project tab!