App crashes when java.lang.IllegalStateException error occurs which is only happens in an Android production release(Android 8.0 and 9 from the google crash report), not in a debug mode. This error only occurs when the app is started at the very first time and error's gone when the app is started right after. I have been searching for the solutions but haven't found one. The app is working perfectly fine on IOS devices. Does anyone have same issue or any ideas to fix this issue? The error messages are as follow
java.lang.IllegalStateException:
at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:135)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error (MethodChannel.java:230)
at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin$3.onComplete (CloudFirestorePlugin.java:427)
at com.google.android.gms.tasks.zzj.run (Unknown Source:4)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6944)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
Check if you configured Firebase properly. Sometimes we need to give Firebase our App certificates hashes for Debug and for Release, maybe you didn't provide those?
Pretend you are configuring Firebase for the first time and recheck every step of the way.
Related
it was working in release apk but after deployment steps its no longer working it crash whenever i try to join a meeting
with error
java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(channel=JitsiOngoingConferenceChannel shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=call actions=2 vis=PUBLIC)
my proguards rules is fine it was working before
problem solved after adding ic_notification icon
I am using Firebase auth and Firebase Firestore. My auth implementation i working fine. As soon as I hooked the Firebase Firestore, I keep getting a FATAL error that Google Playstore service is needed. I am running on Pixel_3a_API_30_x86 emulator. Firestore does not require Google Play service as per the google documentation. I am not sure why is this happening. I have googled but nothing have I found. On a different emulator, it is working fine. I am using a Mac. Here is the error reported in IDE. Thanks in advance for any advise.
/GooglePlayServicesUtil( 3512): Google Play Store is missing.
E/GooglePlayServicesUtil( 3512): GooglePlayServices not available due to error 9
W/Firestore( 3512): (23.0.4) [GrpcCallProvider]: Failed to update ssl context: com.google.android.gms.common.GooglePlayServicesNotAvailableException
I/TetheringManager( 3512): registerTetheringEventCallback:com.theshuk.rental
W/.theshuk.renta( 3512): Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (greylist-max-q,core-platform-api, reflection, denied)
W/.theshuk.renta( 3512): Accessing hidden method Lcom/android/org/conscrypt/AbstractConscryptSocket;->getAlpnSelectedProtocol()[B (greylist-max-q, reflection, denied)
E/AndroidRuntime( 3512): FATAL EXCEPTION: grpc-okhttp-0
After further investigation it turns out the exception is pertaining to grpc-okhttp-0. Even though GooglePlayServicesUtil is reported as E ( Errors ) it still continues.
The grpc-okhttp-0 exception happens only on some emulators, not all. For example pixel 4a works fine. To solve the problem, I added the following to my build.gradle file.
implementation "io.grpc:grpc-okhttp:1.41.0"
It worked.
Failed to establish a debug connection with 661e647d32d2bf1e57a60abeedda37a0af480e22 using mdns: Invalid argument(s): Cannot find executable for /Users/khattab/Desktop/flutter/bin/cache/artifacts/usbmuxd/iproxy.
There is no artifact, so probably build failed. You should check your debug console to see what is the exact problem.
trying to develop a simple app for Android device. After updating this error appearing when I test my app, don't know much about these sort of errors
Cause: aapt2 is missing on 'C:\Users\Awaisi3\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe'
Well, it looks like the file C:\Users\Awaisi3\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe is either missing or is corrupt. Try re-installing build tools 27.0.3 through the SDK manager.
I try to Packaging project with Android Runtime For BlackBerry I done every thing
-Simulator, ADT- for eclipse .. when i test the app i got this error :
[2013-04-13 13:16:04 - BlackBerryTest] Packaging project BlackBerryTest
[2013-04-13 13:16:11 - BlackBerryTest] Launching BlackBerry Android Runtime...
[2013-04-13 13:16:20 - BlackBerryTest] Connecting to ADB...
[2013-04-13 13:17:23 - BlackBerryTest] Status ERROR: net.rim.ajde code=4 Connecting 192.168.72.128 to ADB failed! null children=[Status ERROR: net.rim.ajde code=0 Please check if the Android player was fully started when you got this error. If not, you can either increase the Android player launch timeout on the BlackBerry->BlackBerry Android Development Tools preference page or wait until the Android player is fully started and try again. null]
in the Simulator there is splash screen contain blackberry 10 logo start about 2 sec and then close and eclipse still Connecting to ADB... about a minute then I got error to connect.
**
UPDATE :
**
Now I got this message
04-25 12:01:15.539: I/navigatorshell(17789061): no app URI, just launch AP and exit
Any Idea ?
This is usually caused by the Android Runtime taking a very long time to load, and in some cases, never actually loading.
The root cause is that the simulator is running very slowly. If you haven't already, enable virtualisation in your BIOS, this makes a massive difference to simulator performance and solved this issue for me.
There's a video about this here: http://devblog.blackberry.com/2012/08/performance-increase-blackberry-10-simulator/