The scariest analytics bug is the one that looks like a quiet week. If events sit on a device and never upload, or are lost while the SDK migrates its stored files, your dashboards show lower numbers and nothing alerts you. Teams then make decisions on data that is simply incomplete.
Amplitude Android Kotlin SDK 1.36.0 (21 October 2026) addresses several parts of this. It hardens event file migration and callback cleanup to prevent data loss during upgrades, reduces memory use during uploads, and logs diagnostics when the upload backlog grows unexpectedly large. It also captures ANR events and uncaught exceptions as SDK diagnostics when enableDiagnostics is true, which is the default. Earlier, 1.34.0 began deleting acknowledged event files immediately after receipt confirmation, lowering the chance of duplicate uploads, and added logging for upload requests that do not complete.
Why This Matters
An upgrade is the riskiest moment for stored events. Files written by the old version must be read by the new one. If that step fails, events captured offline vanish. Duplicates are the opposite problem: if a file is not removed after a successful upload, it may be sent twice and inflate counts.
Data Points to Track
sdk_versionbefore and after the upgradepending_event_counton app startupload_backlog_sizeand the age of the oldest queued eventupload_failure_countand failure reasonupload_latency_msper batchevents_received_per_active_user, compared across app versionsduplicate_insert_id_ratesdk_diagnostic_type(ANR, uncaught exception, backlog warning)network_typeat upload time
Setup Steps
- Record your current events per daily active user as a baseline for the week before the upgrade.
- Upgrade the Kotlin SDK to 1.36.0 or later and keep
enableDiagnosticsat its default oftrue. - Roll out to a small share of users first through a staged release.
- Write a custom
app_startevent that includespending_event_countfrom your own storage check, so you can see backlogs without relying on the SDK alone. - Set
insert_idon important events so duplicates can be measured and removed. - Build a chart of events per active user split by
sdk_version. - Add an alert for a drop of more than 10% in that ratio after a release.
Actionable Insights
Compare events per active user between the old and new versions. A steady ratio means the migration worked. A drop points to lost files, and a rise points to duplicates.
Watch backlog age. A queue that grows during a long offline period is normal. A queue that stays large on a good connection means uploads are failing, which is the case worth investigating by network type and region.
Read the diagnostics for ANRs. They show problems inside the SDK itself, so you can tell whether an apparent hang comes from your code or from analytics.
Keep a data-quality note with each release. When a metric moves, the first question should be whether the measurement changed.
Common Mistakes to Avoid
Do not upgrade the SDK and a major feature in the same release. If numbers move, you will not know why.
Do not turn off diagnostics to save a few log lines. They are the early warning you need when uploads quietly stall.