-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Firebase Database ProGuard Issue #1447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@NikiFoD so to be clear, you're getting an exception in this line?
Do you have a direct dependency on As you can see in our releases we bumped the internal version from |
@samtstern Yes, it's on this line. |
Can you try: // I assume this the FirebaseUI dep that you're using?
implementation('com.firebaseui:firebase-ui-database:4.2.0') {
exclude group: 'com.google.firebase', module: 'firebase-database'
}
implementation 'com.google.firebase:firebase-database:16.0.1' |
Yeap, it's fine like this! |
@NikiFoD thanks for confirming! I changed the issue title, going to see what I can find out. Could you show me your entire |
This seems to be the same as this question: |
Here you are:
|
@NikiFoD thank you! Do you mind also telling me what sort of device you're testing on (Model and OS version)? |
@samtstern Emulator, Nexus 5x, Api 27 Name: Nexus_5X_API_27 CPU/ABI: Google Play Intel Atom (x86) Path: C:\Users\NikiFo.android\avd\Nexus_5X_API_27.avd Target: google_apis_playstore [Google Play] (API level 27) Skin: 1080x1920 SD Card: 100M hw.dPad: no hw.lcd.height: 1920 runtime.network.speed: full hw.accelerometer: yes hw.device.name: Nexus 5X vm.heapSize: 256 skin.dynamic: yes hw.device.manufacturer: Google hw.lcd.width: 1080 hw.gps: yes hw.initialOrientation: Portrait skin.path.backup: _no_skin image.androidVersion.api: 27 hw.audioInput: yes image.sysdir.1: system-images\android-27\google_apis_playstore\x86\ tag.id: google_apis_playstore showDeviceFrame: no hw.camera.back: virtualscene hw.mainKeys: no AvdId: Nexus_5X_API_27 hw.camera.front: emulated hw.lcd.density: 420 avd.ini.displayname: Nexus 5X API 27 hw.arc: false hw.gpu.mode: auto hw.device.hash2: MD5:bc5032b2a871da511332401af3ac6bb0 hw.ramSize: 1536 hw.trackBall: no PlayStore.enabled: true fastboot.forceColdBoot: no hw.battery: yes hw.cpu.ncore: 2 hw.sdCard: yes tag.display: Google Play runtime.network.latency: none hw.keyboard: yes hw.sensors.proximity: yes disk.dataPartition.size: 2G hw.sensors.orientation: yes avd.ini.encoding: UTF-8 hw.gpu.enabled: yes |
@NikiFoD I hate to ask you for more information (I really should slow down and think of all of the questions at once) but could you send a more complete logcat output? We're looking to see if there was maybe another exception that occurred before this one and interfered with SDK initialization. Bonus points if you can call |
@samtstern No worries :) The exception is not shown after I put the debug level, although it did crash... |
Huh it seems like that log is only Ideal would be:
Which I expect is what you did but I would expect many other logs from the app and system to show up. |
Sorry about that, this one should be correct. |
@NikiFoD I am trying to reproduce this as closely as possible, but can't get it to crash: |
For reference, this is the line that is crashing: https://github.com/firebase/firebase-android-sdk/blob/00d46269f1ef9ce0f1dd69ab727137a84332d85c/firebase-database/src/main/java/com/google/firebase/database/core/Repo.java#L276 I am still having some trouble piecing together why this is crashing for you. @NikiFoD, can you confirm whether you are calling |
Hi @schmidt-sebastian, yes I am calling it from the main thread. Let me try to reproduce it from @samtstern 's gist and I will come back to you |
@samtstern @schmidt-sebastian Finally found it! The
In firebase-database 16.0.2, the line
|
Nice! I am glad you were able to find the root cause. Note that we have fixed the error you were seeing ("Can't create handler inside thread that has not called Looper.prepare()") in firebase/firebase-android-sdk#22. This will be released shortly. I am closing this for now. |
I downgraded |
Hi @schmidt-sebastian, was this released already? I'm using |
You can manually upgrade to 16.0.3 Please see the instructions here: https://github.com/firebase/FirebaseUI-Android#realtime-database |
Uncaught exception in Firebase Database runloop (3.0.0). Please report to [email protected] |
Worked after updating to latest version implementation "com.google.firebase:firebase-database:19.3.1" |
Steps to reproduce:
Log in anonymously like this:
where
The second line gives me an exception in 4.2.0, which I never had. Double checked now with same code and 4.1.0 and works fine.
The text was updated successfully, but these errors were encountered: