mapbox / mapbox/mapbox-maps-android

GoogleActivityRecognition.start

Open
#2,500 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Android OS version: android12(90%) and android 14(10%)
- Maps SDK Version: 11.6.0

Fatal Exception: java.lang.NoSuchMethodError: No static method registerReceiver(Landroid/content/Context;Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;I)Landroid/content/Intent; in class Lf0/a; or its super classes (declaration of 'f0.a' appears in /data/internal_app/com.package.x-WNe7heuw-kkRJw3S-MZuDQ==/base.apk)
at com.mapbox.common.movement.GoogleActivityRecognition.start(GoogleActivityRecognition.kt:111)
at com.mapbox.common.movement.AndroidMovementMonitor.registerObserver(AndroidMovementMonitor.kt:60)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading GoogleActivityRecognition.kt at line 111 and AndroidMovementMonitor.kt at line 60, then trace the failing registerReceiver call from the provided Android 12/14 stack trace. Reproduce with Maps SDK 11.6.0 and verify that starting activity recognition no longer raises the reported NoSuchMethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.