and-nd-firebase
and-nd-firebase copied to clipboard
Course code repository for Firebase in a Weekend by Google: Android
To use firebase androidx dependencies are needed. Here are some helpful links that I used: https://medium.com/androiddevelopers/migrating-to-androidx-tip-tricks-and-guidance-88d5de238876 https://medium.com/@begalesagar/migrate-an-existing-project-to-androidx-from-support-libraries-adbac897089b https://developer.android.com/jetpack/androidx/migrate Stuff that I did: - add ``` android.useAndroidX=true android.enableJetifier=true ``` to gradle.properties...
After using this code, no any messages are visible. here is my MainActivity.java code /** * Copyright Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version...
This string get error when trying to conver result of snapshot which is String to FriendlyMessage object. Here is an error: com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type...
Android resource linking failed E:\and-nd-firebase-1.00-starting-point\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2096: error: resource android:attr/fontStyle not found. E:\and-nd-firebase-1.00-starting-point\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2097: error: resource android:attr/font not found. E:\and-nd-firebase-1.00-starting-point\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2098: error: resource android:attr/fontWeight not found. E:\and-nd-firebase-1.00-starting-point\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2099: error: resource android:attr/fontVariationSettings not found. E:\and-nd-firebase-1.00-starting-point\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2100: error:...
public void createOrUpdateProfileWithImage(final Profile profile, Uri imageUri, final OnProfileCreatedListener onProfileCreatedListener) { String imageTitle = ImageUtil.generateImageTitle(UploadImagePrefix.PROFILE, profile.getId()); UploadTask uploadTask = databaseHelper.uploadImage(imageUri, imageTitle); if (uploadTask != null) { uploadTask.addOnCompleteListener(task -> { if...
on creating an instance of database the app crashed mFirebaseDatabase = FirebaseDatabase.getInstance();
Update to AndroidX, Android SdkVersion 29, Gradle 6.3 Modern as of April 2020
From.getCurrentUser(); in this part it doesn't t return any CurrentUser it give me the redline method how can i fix this ??? public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user=...