Search result for Question Taged firebase
There are some results of your Tag: firebase
    android - FirebaseInstanceId Token retrieval failed SERVICE_NOT_AVAILABLE

    I'm working on an android app, it uses Firebase Authentication, Database and Storage. It was all working fine until this error message started to show up in logcat. (I did not tamper with any configs at firebase console)

    E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

    this error message shows even when I have commented on all firebase-related code.

    Therefore I'm unable to proceed with authentication and other firebase-related stuff.
    Yes, I'm connected to the internet and also have gotten a new Google-Services.json file from Firebase Console but it has made no difference at all.

    Vlastimila Zhanna 2022-08-17
    No notification sound when sending notification from firebase in android

    I am sending push notification from firebase to my Android Application. but when my app is in background firebase onMessageReceived method is not called instead firebase send notification to system for showing notification in system tray. notification appears in system tray but no sound for notification even i have allowed notification sound for my app in system settings.

    what I can do to play notification sound when notification received from firebase.

    This is how I am sending notification from firebase to my app Blogpost link.

    How to Add firebase in your Android Application

    Konrad Adrianna 2022-08-17
    Firebase: How to set default notification channel in Android app?

    How to set default notification channel for notification messages that come when an app is in the background? By default, these messages use "Miscellaneous" channel.

    Justice Nafiset 2022-08-21
    android - Fabric's Crashlytics with Firebase can't be disabled for DEBUG builds

    I have an app that utilises Fabric's Crashlytics via Firebase. The following is the first thing executed in my Applications onCreate

    CrashlyticsCore crashlyticsCore = new CrashlyticsCore.Builder()
    Fabric.with(this, new Crashlytics.Builder().core(crashlyticsCore).build());

    Nonetheless, the crashes are submitted in DEBUG == true mode.

    I use the following versions

    in my build.gradle classpath ""

    in my app/build.gradle implementation ""

    Unfortunately the crashes still get reported. Any ideas, what I am doing wrong?

    Lotta Daisy 2022-08-22
    java - Firestore - how to structure a feed and follow system

    I was using Firebase realtime database for my test social network app in which you can just follow and receive post of people you follow. A traditional social network. I structured my database something like this-


    I also have another node "Content" which just contained id of the all the user post. So, if "A" followed "B" than all the post id of B where added to A's Timeline. And if B posted something than it was also added to all of its follower's timeline.

    Now this was my solution for realtime database but it clearly have some scalability issues

    • if someone have 10,000 followers than a new post was added to all of the 10,000 follower's Timeline.
    • If someone have large amount of posts than every new follower received all of those posts in his Timeline.

    These were some of the problems.

    Now, I am thinking to shift this whole thing on firestore as its been claimed "Scalable". So how should I structure my database so that problems I faced in realtime database can be eliminated in firestore.

    Adrijan Kazue 2022-08-17
    Android app not receiving Firebase Notification when app is stopped from multi-task tray

    I have read a similar question on SO, however, I was not able to get the correct answer from it.

    I have a system wherein we send notification to around 500 devices.

    Unfortunately, many of these devices are not receiving the notification. I have found that OPPO F1 series phones are particularly not getting the notification.

    I have observed that this occurs if the app is stopped from multi-task tray. How do I resolve this?

    Update: I have observed that when I close the app from task-tray, my app is forced stop in application manager. While when I close Whatsapp from task-tray, it is still not forced stop. How is that being handled by Whatsapp?

    Ganesh Quique 2022-08-18
    android - Firebase onTokenRefresh() is not called

    In my MainActivityin my log, I can see the token using FirebaseInstanceId.getInstance().getToken() and it display the generated token. But it seems like in my MyFirebaseInstanceIDService where it is extends to FirebaseInstanceIdService, the onTokenRefresh() is not called, where in this function it was said that the token is initially generated here. I needed to call sendRegistrationToServer() that's why I'm trying to know why it doesn't go in the onTokenRefresh().

    Here is my code

    public class MyFirebaseInstanceIDService  extends FirebaseInstanceIdService {
    public void onTokenRefresh() {
        // Get updated InstanceID token.
        String refreshedToken = FirebaseInstanceId.getInstance().getToken();
        Log.d(TAG, "Refreshed token: " + refreshedToken);
    Iorwerth Endrit 2022-08-18
    java - How to return DataSnapshot value as a result of a method?

    I don't have much experience with Java. I'm not sure if this question is stupid, but I need to get a user name from Firebase realtime database and return this name as a result of this method. So, I figured out how to get this value, but I don't understand how to return it as result of this method. What's the best way to do this?

    private String getUserName(String uid) {
        databaseReference.child(String.format("users/%s/name", uid))
                .addListenerForSingleValueEvent(new ValueEventListener() {
            public void onDataChange(DataSnapshot dataSnapshot) {
                // How to return this value?
            public void onCancelled(DatabaseError databaseError) {}
    Samar Michi 2022-08-20
    How to extract a list of objects from Firebase DataSnapshot on android

    I want to convert all Firebase DataSnapshot children to a list in android.

    Something like this:

    mFirebaseRef = new Firebase(FIREBASE_URL);
    mFirebaseRef.addValueEventListener(new ValueEventListener() {
        public void onDataChange(DataSnapshot dataSnapshot) {
            List<String> td = (ArrayList<String>) dataSnapshot.getValue();
        public void onCancelled(FirebaseError firebaseError) {
    Stefana Dominik 2022-08-17 FIS_AUTH_ERROR in Android Firebase

    I'm getting following error with Firebase services.

     E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: FIS_AUTH_ERROR. Won't retry the operation.
     D/AndroidRuntime: Shutting down VM FIS_AUTH_ERROR
            at Source:15)
            at com.myApp.MainActivity$2.onComplete(
            at Source:4)
            at android.os.Handler.handleCallback(
            at android.os.Handler.dispatchMessage(
            at android.os.Looper.loop(
            at java.lang.reflect.Method.invoke(Native Method)
         Caused by: FIS_AUTH_ERROR
            at Source:5)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(
            at java.util.concurrent.ThreadPoolExecutor$

    Here is the part of the code where crash occurs:

            FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
                public void onComplete(@NonNull Task<InstanceIdResult> task) {
                    if (task.getResult() != null && task.isSuccessful()) {
                        // Get new Instance ID token
                        firebaseToken = task.getResult().getToken();
                        prefs.edit().putString("firebaseToken", firebaseToken).apply();

    The error occurs in onComplete. Here is firebase dependencies which I use:

        // FIREBASE
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''

    I found this issue on Github related with my crash but there is no conclusive solution at all. Does anybody encountered this kind of issue? Thanks in advance.

    Note: I don't use Flutter however the error occurs without flutter too. Device is Samsung A51 with Android 10.

    Note 2: Firebase removed firebase-core. Problem can be related with that.enter image description here

    Lalage Yakiv 2022-08-22
    firebase - Class file for not found

    I am using Fragment for the designing of the Firebase simple login registration.

    I get error in the OnCreateView() method on initializing

    auth = FirebaseAuth.getInstance();

    error:- Error:(58, 28) error: cannot access zzaja class file for not found please help source:-

    Benjamín Murali 2022-08-18
    firebase - org.gradle.api.resources.ResourceException: Could not get resource in Android Studio 3.2

    I tried to sync the gradle and I got this problem. Can anyone help me?

    org.gradle.api.resources.ResourceException: Could not get resource ''.

    and is this problem related to why I cannot connect my app to firebase?

    all error that i got

    Selvin's edit:

    steps to reproduce: create any project android project with dependencies

    dependencies {
        implementation ''

    (for me it's compile) gradle 4.6 with:

    dependencies {
        classpath ''
        classpath ''

    but spams Build -> Sync log with


    logs if you try to open both URLs they return HTTP 204(No Content)

    Question how can I stop gradle from spamming with those messages for every sync?

    Krystle Müjgan 2022-08-21
    android - Google sign in not working after publishing in play store

    I went through this, and as far as the process goes I did that.

    But I when I installed the app from play store I am not able to sign in using the google sign in button.

    I have used Firebase for google sign in. When I am clicking the sign in button the option to choose the account is coming but then it is not signing in or doing anything.

    So where possibly am I going wrong?

    Bóthildr Vilma 2022-08-17
    android - install_referrer intent deprecation

    I have received email from google:

    We recently announced that we’ll be deprecating the install_referrer intent broadcast mechanism. Because one or more of your apps uses this intent to track referrals, we wanted to ensure you make the switch before March 1, 2020. After this date, new versions of the Play Store app will no longer broadcast the install_referrer intent after app installs.

    I am not using install_referrer directly, but while browsing merged manifest i discovered that some firebase service named with package name use it.

    My firebase dependencies updated to latest version.

    Should I care about it?

    Nadra Serapion 2022-08-18
    android - Find out if childEventListener on Firebase has completed loading all data

    I'm using Firebase Realtime Database for storing and retrieving data for my Android application. In my activity I retrieve all data (example: list of user data) from Firebase using a childEventListener.

    I want to show a progress bar as long as the data is not completely retrieved from the database. How do I check if all data is completely retrieved so that I can close the progress bar after the data is loaded?

    Toni Milford 2022-08-21
    android - How to create/update multiple documents at once in Firestore

    Is it possible to store multiple documents in Firestore with only one request? With this loop it's possible but this would cause one save operation per item in the list.

    for (counter in counters) {
        val counterDocRef = FirebaseFirestore.getInstance()
        val counterData = mapOf(
                "name" to,
                "score" to counter.score,
    Stefana Dominik 2022-08-19
    android - Firebase onMessageReceived not called when app in background

    I'm working with Firebase and testing sending notifications to my app from my server while the app is in the background. The notification is sent successfully, it even appears on the notification centre of the device, but when the notification appears or even if I click on it, the onMessageReceived method inside my FCMessagingService is never called.

    When I tested this while my app was in the foreground, the onMessageReceived method was called and everything worked fine. The problem occurs when the app is running in the background.

    Is this intended behaviour, or is there a way I can fix this?

    Here is my FBMessagingService:

    import android.util.Log;
    public class FBMessagingService extends FirebaseMessagingService {
        public void onMessageReceived(RemoteMessage remoteMessage) {
            Log.i("PVL", "MESSAGE RECEIVED!!");
            if (remoteMessage.getNotification().getBody() != null) {
                Log.i("PVL", "RECEIVED MESSAGE: " + remoteMessage.getNotification().getBody());
            } else {
                Log.i("PVL", "RECEIVED MESSAGE: " + remoteMessage.getData().get("message"));
    Sitora Meresankh 2022-08-14
    android - Why am I getting AbstractDynamicObject$CustomMessageMissingMethodException error?

    I have just started a new project and am trying to connect to Firebase.

    As soon as I try to build my project I got the error:

    Could not parse the Android application Module's Gradle Config

    So I looked in my build which told me that jCenter() was deprecated and that I should remove it. When I removed it, everything worked fine. However, when I tried to connect to Firebase I got the error:


    What may be causing this?

    Full stack trace:

        Caused by: java.lang.RuntimeException: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method setVariantDir() for arguments [debug] on task ':app:processDebugGoogleServices' of type
    Séafra Orvar 2022-08-20
    Flutter Firebase and Android issue - unable to initialise. Cannot find google-services.json with latest (sept 2020) migration instructions executed

    I'm a Flutter developer and for the past two days I have been trying to get my app working for Android. It's quite a big app with a lot of different functionalities (mostly google maps and firebase) that work perfectly fine on iOS. However, now that I'm trying to get the Android part working I seem unable to start the app at all due to some Firebase issue.

    FlutterFire is responsible for most Firebase packages and they just released a couple updates. I have spent quite some time refactoring my project to conform to most breaking changes. The issue that I'm facing has something to do with the new update. The error that I'm getting doesn't bring me anywhere closer to a solution unfortunately. I think it has something to do with the Android part not being able to find the google-services.json. As I mentioned, everything is working fine on iOS. So my logical conclusion would be that the Flutter code is fine as well. Google/StackOverflow/FlutterFire issues all seem to misguide me to issues that have no answers for me.

    TL;DR When compiling to Android, Flutter App doesn't start because Firebase cannot find my google-services.json. Here's the stacktrace:

    E/flutter (15568): [ERROR:flutter/lib/ui/] Unhandled Exception: [core/not-initialized] Firebase has not been correctly initialized. Have you added the "google-services.json" file to the project? 
    E/flutter (15568):     
    E/flutter (15568):     View the Android Installation documentation for more information:
    E/flutter (15568):     
    E/flutter (15568): #0      MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:86:9)
    E/flutter (15568): <asynchronous suspension>
    E/flutter (15568): #1      Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:25)
    E/flutter (15568): #2      mainCommon (package:userapp/main/main_common.dart:31:18)
    E/flutter (15568): #3      main (package:userapp/main/main_dev.dart:6:9)
    E/flutter (15568): #4      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:233:25)
    E/flutter (15568): #5      _rootRun (dart:async/zone.dart:1190:13)
    E/flutter (15568): #6 (dart:async/zone.dart:1093:19)
    E/flutter (15568): #7      _runZoned (dart:async/zone.dart:1630:10)
    E/flutter (15568): #8      runZonedGuarded (dart:async/zone.dart:1618:12)
    E/flutter (15568): #9      _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:225:5)
    E/flutter (15568): #10     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
    E/flutter (15568): #11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
    E/flutter (15568):

    I have done the following things so far:

    1. Followed the migration instructions on
    2. Placed my google-services.json in android/app as well as android/app/src/main, android/app/src/profile and android/app/src/debug (I know the latter 3 are not essential but I have seen it being mentioned a couple times).
    3. Make sure I call WidgetsFlutterBinding.ensureInitialized() before calling await Firebase.initalizeApp().
    4. Make sure I call Firebase.initializeApp() before I call runApp().
    5. Rebuilt the project with different versions of plugins inside my pubspec.yaml and/or both my application and app build.gradle.
    6. Witheld myself numerous times from throwing the good old laptop out of the window.

    Even when I remove all of my code and leave my app with nothing more than the following code I still get the same error.

    await Firebase.initializeApp();

    My app/build.gradle has the following config:

    compileSdkVersion 29
    sourceSets { += 'src/main/kotlin'
    lintOptions {
        disable 'InvalidPackage'
    defaultConfig {
        applicationId "stackoverflow.example.package"
        minSdkVersion 21
        targetSdkVersion 29
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true

    And the following dependencies:

    dependencies {
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
        implementation ''
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test:runner:1.2.0'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
        implementation ''
        implementation ''

    I apply the following plugins:

    apply plugin: ''
    apply plugin: 'kotlin-android'
    apply plugin: ''
    apply plugin: ''
    apply plugin: ''
    apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

    My android/build.gradle has to following dependencies (I have updated these to specific and latest versions in an attempt to fix this issue without success):

    dependencies {
        classpath ''
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
        classpath ''
        classpath ''
        classpath ''

    I have also updated my google-services.json multiple times downloading the latest version from Firebase but that also did not help. I find it weird to not see anyone else with this problem. I hope any of you are able to figure out what's going on. Thanks a lot in advance.

    Update: I removed and added a couple dependencies in the build.gradle (even though the migration guide says to remove them all, this doesn't always work) and reverted the android project back to Java instead of Kotlin. This allowed to reconfigure some firebase messaging in a better way. This seems to have changed something but still gives me some kind Firebase initialise error. [ERROR:flutter/lib/ui/] Unhandled Exception: MissingPluginException(No implementation found for method Firebase#initializeCore on channel I won't sleep till I fix this ♞

    Update 2: I ended up creating a new project carefully copying firebase and multiple other packages from the original project. After that I copied every single file in lib/android along with their respective configurations in build.gradle's and manifests. For iOS I just copied the entire project and that worked immediately. All seems to work now in the 'new' project. Still completely unsure what the culprit was since I've copied the exact project over to a new one. Anyway hope this helps anyone with this issue. I've wasted five days on this 😄, I wish you not the same whoever you are.

    Muhammad's answer below seems to have helped a lot of people as well, try my solution as a last resort.

    Vitalija Dimas 2022-08-21
    java - How to check if a Firebase App is already initialized on Android

    With the following, the first time it's called it works, but then fails on subsequent calls with "FirebaseApp name [DEFAULT] already exists!"

    public FirebaseDatabase conn(Context c) {
             FirebaseOptions options = new FirebaseOptions.Builder()
            /////I tried Try and Catch with no success//////
            FirebaseApp app = FirebaseApp.initializeApp(c, options);
            /// for this : FirebaseApp app = FirebaseApp.initializeApp(c, options, "some_app");
            //// will fail with "FirebaseApp name some_app already exists!"
            return FirebaseDatabase.getInstance(app);

    All of the above is an attempt to connect to a second Firebase App.

    Greta Iris 2022-08-17
    android - Duplicate class found in modules guava-20.0.jar (

    When I use implementation '' in my app/build.gradle, I get this error:

    Duplicate class found in modules guava-20.0.jar ( and listenablefuture-1.0.jar (
    Go to the documentation to learn how to Fix dependency resolution errors.

    What I also have in my app/build.gradle is this:

    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    implementation ''
    apply plugin: ''

    Maybe one of the libraries that I am using already includes support for the In-App Messaging dependency, and then it becomes redundant? Thank you.

    Adrianne Siavash 2022-08-16
    android - Firebase Crashlytics custom log does not appear in the console

    I've been testing Firebase Crashlytics and even though the normal crash report works right I can't success trying to generate a custom as it says the documentation.


    I also would like to know wether setting the user identifier for Crashlytics can be done for any crash (according to the doc I've understood that it's possible) with

    void Crashlytics.setUserIdentifier(String identifier); 

    and how it would have to be done, because it does neither work to me, I can't see anything on the Firebase crashlytics console.

    Thanks in advance!

    Nandita Maud 2022-08-20
    android - Firestore update only one field

    I have a database. The sequence is: collections - document - hashmaps. For example:

    users - the name of the collection

    users.uid - the name of the document

    Hashmap the document consists of a lot of hashmaps user data Hashmap Hashmap etc

    Hashmap: the name of user is the key and telephone, location etc are the values. I need to update only one field(location) for one username, but can't understand how do this?

    I tried the next way (update phone number for alex):

    User user = new User();
    Map<String,RealmObject> userMap = new HashMap<>();
                      .set(userMap, SetOptions.merge())
                      .addOnSuccessListener(new OnSuccessListener<Void>() {
                          public void onSuccess(Void aVoid) {
                      .addOnFailureListener(new OnFailureListener() {
                          public void onFailure(@NonNull Exception e) {
                              LOG.error("Failure "+e.toString());

    What I am doing wrong?

    Lenuța Robert 2022-08-18
    firebase - How to add SHA-1 to android application

    I'm trying to create a dynamic link in Firebase, when I'm selecting the android app, it shows an error saying "Add SHA-1 to this android app", I've already added a credential, but I'm not sure how exactly do I "add SHA-1 to the app"

    How is this done?

    Samar Michi 2022-08-16
    android - How to save GeoFire coordinates along with other items in Firebase database?

    I'm developing an app and saving some strings like postedAtTime, postedBy, postedOnDate in Firebase database. I want to save the GeoFire coordinates in the same node in which all the above string are saved, so that later I can do query, easily.

    Here's the path to which I'm saving all the strings:

    databaseReferenceHRequests = firebaseDatabase.getReferenceFromUrl("");

    This is how I'm saving it:

    // in onButtonClicked method:
    postNewRequest(null, imageUID, MainActivity.userName.getText().toString(), time, date, utcFormatDateTime, MainActivity.userEmail.getText().toString(), geoFire);
    // the method:
    public void postNewRequest(Bitmap bitmap, String imageUIDh, String postedBy, String postedAtTime, String postedOnDate, String utcFormatDateTime, String userEmail, GeoFire geoFire) {
        HRequest hRequest = new HelpRequest(null, imageUIDh, postedBy, postedAtTime, postedOnDate, utcFormatDateTime, userEmail, geoFire);

    Here's how it is getting saved in the database:

    database structure screenshot

    What I want is to save the GeoFire coordinates in the same node, which is -KLIoLUsI0SpQZGpV1h4 here. This is just a push ID and it gets generated randomly.

    I tried it by giving this reference:

    geoFire = new GeoFire(firebaseDatabase.getReferenceFromUrl(""));

    And then pushing it with other items as shown above. But, this saved only GeoFire coordinates and not the other items under the node requests.

    So, what should be my GeoFire reference so that it gets saved along with all the data in the same node?

    What is going wrong here? Please let me know.

    Justice Nafiset 2022-09-03
    android - Receive all the push notifications when devices are offline

    I'm creating an iOS and Android native app, using Firebase for sending push notifications.

    It's working fine, but when I switch off my devices and send some notifications, after starting the devices, I just receive the last one sent for iOS, and the same for Android.

    Is there a way to receive all the push notifications even when the devices are offline and they're started?

    Ritu Nadežda 2022-09-10
    android - Firebase FCM force onTokenRefresh() to be called

    I am migrating my app from GCM to FCM.

    When a new user installs my app, the onTokenRefresh() is automatically being called. The problem is that the user is not logged in yet (No user id).

    How can I trigger the onTokenRefresh() after the user is logged-in?

    Emmy Kanani 2022-08-16
    android - How to send notification to specific users with FCM?

    I prepared the receiver for FCM and can send a notification to all devices. with this link can send to target users who is registered and post to the target devices like below json :

         "notification": {
                    "title": "sample Title",
                    "text": "sample text"   },   
            "to" : "[registration id]"

    However, I need to send notifications to target users which I choose, via email or name...etc . For example:

         "notification": {
                    "title": "sample Title",
                    "text": "sample text"   },   
            "to" : "[email or name or sex ...]"

    How can I do that? Do I need to create a web server or something else?

    Sitora Meresankh 2022-08-22
    android - Ionic Cordova app stopped compiling after Google's June 17th Firebase SDK update

    I'm unable to compile Ionic Cordova App after Firebase Major version update with Breaking Changes, specifically with June 17, 2019 update.

    I tried downgrading to Android Cordova 6.3.0 but my project must be 7.0.0.

    This is my ionic info:

    @ionic/cli-utils  : 1.19.2
        ionic (Ionic CLI) : 3.20.0
    global packages:
        cordova (Cordova CLI) : 8.0.0
    local packages:
        @ionic/app-scripts : 3.2.1
        Cordova Platforms  : android 7.0.0 browser 5.0.4
        Ionic Framework    : ionic-angular 3.9.3
        Android SDK Tools : 26.1.1
        Node              : v8.9.1
        npm               : 5.5.1
        OS                : Windows 10
    Environment Variables:
        ANDROID_HOME : C:\Development\android-sdk
        backend : pro

    This is the error I'm Getting:

    :app:processDebugResources C:\Users\mmzep.gradle\caches\transforms-1\files-1.1\core-1.0.0.aar\73b4a83ab5e76f20c84a66b1c8444d08\res\values\values.xml:133:5-70: AAPT: error: resource android:attr/fontVariationSettings not found.

    C:\Users\mmzep.gradle\caches\transforms-1\files-1.1\core-1.0.0.aar\73b4a83ab5e76f20c84a66b1c8444d08\res\values\values.xml:133:5-70: AAPT: error: resource android:attr/ttcIndex not found.

    C:\Users\mmzep\Desktop\mario\Seven\SevenPassengerApp\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:95: error: resource android:attr/fontVariationSettings not found. C:\Users\mmzep\Desktop\mario\Seven\SevenPassengerApp\platforms\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:95: error: resource android:attr/ttcIndex not found. error: failed linking references.

    Failed to execute aapt Failed to execute aapt

    Urbain Vidar 2022-08-28
    android - firestore: PERMISSION_DENIED: Missing or insufficient permissions

    I am getting the Error PERMISSION_DENIED: Missing or insufficient permissions.

    for the below code on else statement

        .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
            public void onComplete(@NonNull Task<QuerySnapshot> task) {
                 if (task.isSuccessful()) {
                     for (DocumentSnapshot document : task.getResult()) {
                         s(document.getId() + " => " + document.getData());
                 } else {
                     s("Error getting documents."+ task.getException());
    Eider Siors 2022-08-14