Firebase Crashes doesn't show in Firebase Console at all - android

The app I am developing is linked to a project in Firebase Console. I have included 'google-services.json' under the 'app' folder too.
My Top Level build.gradle is:
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
}
My App Level build.gradle is:
dependencies {
compile 'com.google.firebase:firebase-crash:9.8.0'
}
apply plugin: 'com.google.gms.google-services'
I know that latest 'firebase-crash' is 10.0.1 which requires an updated Google Repository and Google Play Services. However, I am able to use same firebase-crash on another app I am making. I am a little short on internet pack, i can't update yet.
I use following snippet in onCreate() of MainActivity to cause a test crash:
FirebaseCrash.log(TAG + ": Test Log"));
FirebaseCrash.report(new Exception("Test Exception"));
I checked 'google-services.json' too for correct mobile_sdk_id, it matches perfectly. My package name matches with firebase project too.
I don't do anything with Firebase Analytics.
Following is logcat output:
20:09:07.830 D/OpenGLRenderer: Enabling debug mode 0
20:09:07.915 D/FA: Connected to remote service
20:09:07.915 V/FA: Processing queued up service tasks: 3
20:09:10.340 D/dalvikvm: GC_CONCURRENT freed 301K, 12% free 11312K/12807K, paused 45ms+3ms, total 167ms
20:09:12.995 V/FA: Inactivity, disconnecting from the service
20:13:29.480 V/FA: Recording user engagement, ms: 261701
20:13:29.480 V/FA: Using measurement service
20:13:29.480 V/FA: Connecting to remote service
20:13:29.485 V/FA: Activity paused, time: 31073604
20:13:29.485 D/FA: Logging event (FE): _e, Bundle[{_o=auto, _si=-207754800234984953, _et=261701, _sc=MainActivity}]
20:13:29.675 D/dalvikvm: GC_CONCURRENT freed 612K, 14% free 11339K/13127K, paused 31ms+64ms, total 187ms
20:13:29.675 V/FA: Using measurement service
20:13:29.690 V/FA: Connection attempt already in progress
20:13:29.690 D/FA: Connected to remote service
20:13:29.695 V/FA: Processing queued up service tasks: 2
20:13:34.745 V/FA: Inactivity, disconnecting from the service
20:26:19.835 D/dalvikvm: GC_CONCURRENT freed 630K, 14% free 11302K/13127K, paused 19ms+2ms, total 135ms
Its been 5 hours since i am trying to see Errors on Firebase Console. I have tried opening and closing my app for more than 20 times.
How do i know FirebaseCrash has been enabled?
When will Errors show up in console?
Am i doing something wrong?
Edit:
There is no V/FirebaseCrash: message in logcat.
Following does not appear in logcat:
FirebaseCrash.logcat(0, TAG, "Test Logcat 0");
FirebaseCrash.logcat(1, TAG, "Test Logcat 1");
There are some lines printed by FirebaseCrash before debugger has attached:
12-11 22:27:09.950 I/FirebaseCrash: FirebaseCrash reporting initialized com.google.android.gms.internal.zzbks#424d3e68
12-11 22:27:09.950 I/FirebaseInitProvider: FirebaseApp initialization successful
Updated Firebase-Crash to 10.0.1 and other SDK tools. No change.

I am so ashamed to know that my laptop's date was one day late. As soon as i corrected the date, results started to show in console. My problem is solved now.

Related

My app gets launched but does not reopen

My app gets launched but does not reopen. It shows the following error in my logcat -
myapplicationfirebase V/FA: onActivityCreated myapplicationfirebase
E/ANDR-PERF-JNI: IPerf::tryGetService failed!
myapplicationfirebase D/FA: Connected to remote service
myapplicationfirebase V/FA: Processing queued up service tasks: 2
myapplicationfirebase V/FA: Inactivity, disconnecting from the service
.myapplicationfirebase W/DynamiteModule: Local module descriptor
class for com.google.firebase.auth not found.

Google tag manager- No user property available for "item_id" and no default value was defined. Returning "undefined"

I am trying to integrate Firebase analytics and Google tag manager into my Android app. I have configured some tags and triggers over my GTM console. But i see the following error in my debug console in Android studio. What i am trying to achieve is send my events to both Firebase analytics, GTM and then push the same event to Google analytics using Google tag manager. My events are successfully pushed to Firebase analytics, but not to Google analytics.
Firebase event tracking:
Bundle params = new Bundle();
params.putString("screen_name", "Main activity");
mFirebaseAnalytics.logEvent("screenview", params);
Debug log:
04-06 21:27:19.701 14388-23135/com.droidowl.googletagmanager V/FA: Activity resumed, time: 1495667
04-06 21:27:21.098 14388-23135/com.droidowl.googletagmanager D/FA: Passing event to registered event handler (FE): screenview, Bundle[{screen_name=Main activity}]
04-06 21:27:21.103 14388-14829/com.droidowl.googletagmanager D/FA: Fetching user attributes (FE)
04-06 21:27:21.109 14388-23135/com.droidowl.googletagmanager V/FA: Using measurement service
04-06 21:27:21.109 14388-23135/com.droidowl.googletagmanager V/FA: Connecting to remote service
04-06 21:27:21.157 14388-23135/com.droidowl.googletagmanager D/FA: Connected to remote service
04-06 21:27:21.158 14388-23135/com.droidowl.googletagmanager V/FA: Processing queued up service tasks: 1
04-06 21:27:21.170 14388-14829/com.droidowl.googletagmanager W/GoogleTagManager: No user property available for "item_id" and no default value was defined. Returning "undefined".
04-06 21:27:21.174 14388-14829/com.droidowl.googletagmanager W/GoogleTagManager: No user property available for "item_id" and no default value was defined. Returning "undefined".
04-06 21:27:21.179 14388-23135/com.droidowl.googletagmanager D/FA: Logging event (FE): screenview, Bundle[{screen_name=Main activity, _o=app+gtm}]
04-06 21:27:26.190 14388-23135/com.droidowl.googletagmanager V/FA: Inactivity, disconnecting from AppMeasurementService
Play services version: 9.4.0

'Unfortunately, app has stopped' is shown twice on the device and 'Application terminated' in android studio with no error being shown

I am developing an app using Android Studio.
The problem is that app gets crashed twice within few minutes of running it and besides Application terminated. and normal logs no error is shown in the logcat.
Here's complete logcat:
02/12 22:31:34: Launching app
Cold swapped changes.
$ adb shell am start -n "com.abc.xxx/com.abc.xxx.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 13399 on device micromax-micromax_aq4502-2864004C04884I2
I/art: Late-enabling -Xcheck:jni
W/System: ClassLoader referenced unknown path: /data/app/com.abc.xxx-2/lib/arm
I/InstantRun: Instant Run Runtime started. Android package is com.abc.xxx, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.abc.xxx-2/lib/arm
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/art: Background sticky concurrent mark sweep GC freed 11281(1218KB) AllocSpace objects, 22(696KB) LOS objects, 15% free, 5MB/6MB, paused 13.077ms total 70.659ms
I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
I/DynamiteModule: Selected local version of com.google.android.gms.flags
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:4
I/DynamiteModule: Selected remote version of com.google.android.gms.crash, version >= 4
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi-v7a
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi
I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader p[DexPathList[[zip file "/data/data/com.google.android.gms/app_chimera/m/00000012/DynamiteModulesC_GmsCore_prodmnc_hdpi_release.apk"],nativeLibraryDirectories=[/data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi-v7a, /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi, /vendor/lib, /system/lib]]]
I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
I/DynamiteModule: Selected local version of com.google.android.gms.flags
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
I/FA: App measurement is starting up, version: 10084
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
D/FA: Debug-level message logging enabled
D/FA: AppMeasurement singleton hash: 198168520
V/FA: Collection enabled
V/FA: App package, google app id: com.abc.xxx, 1:987905869088:android:e7f50263e7b8aa58
I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.getsportalapp.sportal
V/FA: Registered activity lifecycle callback
I/FirebaseCrash: FirebaseCrash reporting initialized com.google.android.gms.internal.zzbks#e551d72
I/FirebaseInitProvider: FirebaseApp initialization successful
V/FA: Using measurement service
V/FA: Connecting to remote service
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
I/GAC: Building GoogleApiClient
I/CrashlyticsCore: Initializing Crashlytics 2.3.15.167
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 824779068
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
D/signedIn: onAuthStateChanged:signed_in:ShXMXdc5kHUQZWG3lGudJtt2
I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:5
I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 5
I/OpenGLRenderer: Initialized EGL, version 1.4
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
E/RecyclerView: No adapter attached; skipping layout
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
E/RecyclerView: No adapter attached; skipping layout
D/getInvitation: getInvitation: no deep link found.
D/called: again
D/cLat: 2.8418744
D/cLng: 8.7791019
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000010/n/armeabi
D/DynamitePackage: Instantiated singleton DynamitePackage.
D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/DynamiteModule: Considering local module com.google.android.gms.piccard.dynamite:0 and remote module com.google.android.gms.piccard.dynamite:12
I/DynamiteModule: Selected remote version of com.google.android.gms.piccard.dynamite, version >= 12
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000010/n/armeabi
W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
I/Ads: Starting ad request.
I/WebViewFactory: Loading com.google.android.webview version 53.0.2785.124 (code 278512400)
D/diffAnother: -6283000
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
I/cr_LibraryLoader: Time to load native libraries: 6 ms (timestamps 5738-5744)
I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {611ead6}
I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
I/chromium: [INFO:library_loader_hooks.cc(151)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
W/cr_media: Requires BLUETOOTH permission
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/DynamiteModule: Considering local module com.google.android.gms.tagmanager:8 and remote module com.google.android.gms.tagmanager:9
I/DynamiteModule: Selected remote version of com.google.android.gms.tagmanager, version >= 9
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/GoogleTagManager: No container asset found in /assets/containers. Checking top level /assets directory for container assets.
W/GoogleTagManager: Tag Manager's event handler WILL NOT be installed (no container loaded)
I/GoogleTagManager: Tag Manager initilization took 213ms
V/FA: Using measurement service
V/FA: Connecting to remote service
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 1
I/Ads: Scheduling ad refresh 45000 milliseconds from now.
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
I/Ads: Ad finished loading.
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/chromium: [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
I/chromium: [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
I/chromium: [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
D/diffAnother: 1129000
D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/Ads: Starting ad request.
D/diffAnother: -6300000
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/Ads: Scheduling ad refresh 45000 milliseconds from now.
I/Ads: Ad finished loading.
V/FA: Using measurement service
V/FA: Connecting to remote service
D/FA: Logging event (FE): _e, Bundle[{_o=auto, _et=29568, _sc=MainActivity, _si=-6311178554893906199}]
V/FA: Using measurement service
V/FA: Connection attempt already in progress
V/FA: Activity paused, time: 824808635
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
D/call1: called
D/call2: called
D/call1: called
D/call2: called
D/error1: ERROR1
D/error1: ERROR1
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
V/RenderScript: 0xb8457a88 Launching thread(s), CPUs 4
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
V/FA: Inactivity, disconnecting from the service
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
Application terminated.
I tried integrating crashlytics but even it doesn't show any error when the app crashes in this manner.
The question is how will I be able to fix the error if I don't even know what the error is?
Please help me with this.
I think the issue is related to your ad view.
In last line it is showing that ad is not visible.

Firebase analytics Logging event returns error

I have integrated Firebase Analytics in my app and enabled logcat. When sending log event, I got these message:
09-16 12:29:52.254 7233-7264 D/FA: Logging event (FE): add_payment_info, Bundle[{achievement_id=112, _o=app}]
09-16 12:29:52.255 7233-7264 V/FA: Using measurement service
09-16 12:29:52.255 7233-7264 V/FA: Connecting to remote service
09-16 12:29:52.259 7233-7264 V/FA: Activity paused, time: 44850636
09-16 12:29:52.282 7233-7264 D/FA: Connected to remote service
09-16 12:29:52.282 7233-7264 V/FA: Processing queued up service tasks: 1
09-16 12:29:53.259 7233-7264 D/FA: Application backgrounded. Logging engagement
09-16 12:29:53.263 7233-7264 D/FA: Logging event (FE): _e, Bundle[{_o=auto, _et=1853}]
09-16 12:29:58.271 7233-7264 V/FA: Inactivity, disconnecting from AppMeasurementService
According to this question: Firbase analytics are not apearing in the dashboard, I think this line "Logging event (FE): _e, Bundle[{_o=auto, _et=1853}]" means the event is not logged successfully. How to make it work? Thanks.
To close this question: this is not an error log. A few hours after deploying, the log info showed up.

Firebase analytics event not show up on firebase console

I have implement firebase analytics in my app, but not show up any event or log in fire base console.
Add bellow code in each fragment in onCreateView() method.
private void addFragmentInFirebaseAnalytics() {
FirebaseAnalytics firebaseAnalytics = FirebaseAnalytics.getInstance(getContext());
FragmentItem fragmentItem = new FragmentItem();
fragmentItem.setFragmentId(Constant.FM_ID_MOIST_AIR);
fragmentItem.setFragmentName(MoistAirActivity.class.getSimpleName());
Bundle bundle = new Bundle();
bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, fragmentItem.getFragmentId());
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, fragmentItem.getFragmentName());
//Logs an app event.
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
Log.d(TAG,"bundle >>"+bundle);
}
Used dependency is :
compile 'com.google.firebase:firebase-core:9.4.0'
used plugin :
apply plugin: 'com.google.gms.google-services'
Its work fine and show log like this in debug console,
09-14 12:30:42.967 D/FA ( 8821): Logging event (FE): select_content, Bundle
[{_o=app, _ev=item_id, item_name=MoistAirActivity, content_type=Navigation Menu,
_err=4}]
09-14 12:30:42.977 V/FA ( 8821): Using measurement service
09-14 12:30:42.977 V/FA ( 8821): Connecting to remote service
09-14 12:30:43.217 D/FA ( 8821): Connected to remote service
09-14 12:30:43.217 V/FA ( 8821): Processing queued up service tasks: 1
09-14 12:30:43.217 E/FA ( 8821): Task exception on worker thread: java.lang
.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. : com.goo
gle.android.gms.measurement.internal.zzt.zzEd(Unknown Source)
09-14 12:30:48.217 V/FA ( 8821): Inactivity, disconnecting from AppMeasurem
entService
but not show any uploading message in debug console and firebase console after 24 hours,
So, whats wrong here ? please help.
Finally i resolved this problem by replacing tools:node="replace" to tools:node="merge" and add tools:replace="android:label" in menifest file.
Reference : FirebaseApp with name [DEFAULT] doesn't exist
For me this worked:
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
in the AndroidManifest.xml.
I've not specified any tools attribute.
There are a few things that could be going on here. You will see more diagnostic messages if you run:
adb shell setprop log.tag.FA VERBOSE
and if your test device has Google Play Services installed, also run:
adb shell setprop log.tag.FA-SVC VERBOSE
Those commands will display more information in your logcat. Are there any errors from FA or FA-SVC on application startup?

Categories

Resources