Skip to main content

All Questions

Tagged with
58 votes
19 answers
56k views

java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler?

I'm getting this strange AccessError after implementing Firebase Database dependencies. I had Firebase Authentication and Firebase Analytics enabled before loading Firebase Database. I'm using it as ...
a-bytecode's user avatar
33 votes
8 answers
4k views

Class 'MyFirebaseMessagingService' is not abstract and does not implement abstract base class member public abstract fun zzd(p0: Intent!)

Here I have used FirebaseMessagingService in Kotlin but when I run the project it will give me the following error: Class 'MyFirebaseMessagingService' is not abstract and does not implement abstract ...
Nilesh Panchal's user avatar
32 votes
4 answers
10k views

Why does my function that calls an API or launches a coroutine return an empty or null value?

(Disclaimer: There are a ton of questions which arise from people asking about data being null/incorrect when using asynchronous operations through requests such as facebook,firebase, etc. My ...
a_local_nobody's user avatar
31 votes
5 answers
19k views

Why does I'm getting "Service not registered" exception, even though I not used any service in Android - Java/Kotlin?

I haven't used any receiver or something. But I used Firebase in my Android project. Previously I was not getting this exception, but suddenly it is showing! Exception: W: Exception thrown while ...
user avatar
30 votes
2 answers
5k views

Firebase @Exclude with kotlin data class

I have this data class in Kotlin (example): import com.google.firebase.database.Exclude data class User(val name: String = "", @Exclude val age: Int = 0) And I don't want to save the age property in ...
Dan's user avatar
  • 365
28 votes
4 answers
12k views

How to transform an Android Task to a Kotlin Deferred?

Firebase anonymous sign in returns a task (which is basically Google promise implementation): val task:Task<AuthResult> = FirebaseAuth.getInstance().signInAnonymously() How it would be possible ...
JP Ventura's user avatar
  • 5,752
27 votes
9 answers
55k views

No matching client found for package name "...." with different buildvariant

I want to implement push notification. I added to project level: dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.google.gms:google-services:3.0.0' } and ...
Shudy's user avatar
  • 7,936
24 votes
3 answers
12k views

Is there a way to use Firebase (Authentication) with Kotlin Multiplatform?

I have a project which uses Firebase Authentication in Android. It works well and I want to port the same project to an iOS App using code sharing with Kotlin Multiplatform. I initially thought I ...
Archie G. Quiñones's user avatar
21 votes
2 answers
4k views

Firebase Firestore toObject fails on Boolean property mapping

When pulling data from Firestore, I use .toObject() to map the data received into my data class, which is: data class Img(var event_uid: String = "", var isVip: Boolean = false , var nombre: String = ...
lordneru's user avatar
  • 770
19 votes
7 answers
23k views

How do I get the document ID for a Firestore document using kotlin data classes

I have kotlin data class data class Client( val name: String = "", val email: String = "", val phone: String ="") { constructor():this("","","")} I have firestore populate the data into ...
Curtis.Covington's user avatar
19 votes
3 answers
9k views

How to provide database to MyFirebaseMessagingService using Dagger 2 so that I can store fcm message locally in android

How can I make it possible to pass database Instance to the MyFirebaseMessagingService class which extends FirebaseMessagingService so that I can save data payload locally? Note: I already setup ...
Sharoon Amjid's user avatar
19 votes
1 answer
3k views

Kotlin class does not get its boolean value from firebase

I have my kotlin class as class Center : Serializable { var active: Boolean? = null var address: String? = null var isJobAccessGranted: Boolean? = null } here is how i am getting value //from ...
FaisalAhmed's user avatar
  • 3,661
19 votes
3 answers
7k views

Firebase ML kit give FirebaseMLException: Waiting for the text recognition model to be downloaded. Please wait

I'm use firebase ml kit for text recognition but give this exception on emulator and real device. W/System.err: com.google.firebase.ml.common.FirebaseMLException: Waiting for the text recognition ...
Radesh's user avatar
  • 13.6k
19 votes
2 answers
3k views

Android Gradle build fails dexBuilderDebug task, after updating to Kotlin 1.4

I've tried to update my Android project to Kotlin 1.4.0, since it's now oficially stable, and after update I've encountered a problem. I will not post the entire stack here, since it's very long, but ...
ikurek's user avatar
  • 604
18 votes
3 answers
22k views

FirebaseCrashlytics: Settings request failed

I almost finished building my android app, but I want to add FirebaseCrashlytics. I always add this and I never had a problem installing it. But now its diffrent. I get the following error: 2021-05-24 ...
chrispsv's user avatar
  • 455

15 30 50 per page
1
2 3 4 5
201