mapbox / mapbox/mapbox-navigation-android

java.lang.IncompatibleClassChangeError v2.15.1

Open
#7,499 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

Android API: 33
Mapbox Navigation SDK version: tested both on 2.15.1 and 2.16.0-beta.1

When updating the navigation sdk from version 2.14.2 to 2.15.1 or 2.16.0-rc.1 I get the following error:

> java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.ActivityRecognitionClient, but class was expected (declaration of 'com.google.android.gms.location.ActivityRecognitionClient' appears in /data/app/~~DWwv94cE6vILduO-pIRlKA==/com.mypackage.mapbox-O3rUW7l2svgafrdY8f04XQ==/base.apk!classes2.dex)
> at com.mapbox.common.movement.GoogleActivityRecognition.start(GoogleActivityRecognition.kt:115)
> at com.mapbox.common.movement.AndroidMovementMonitor.registerObserver(AndroidMovementMonitor.kt:60)

please could you check it out? I have tried to force the location library into all projects with

> configurations.all{
> resolutionStrategy{
> force "com.google.android.gms:play-services-location:21.0.1"
> }
> }
>

But its not working,
Thank you

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 with the stack trace locations GoogleActivityRecognition.kt:115 and AndroidMovementMonitor.kt:60, then inspect how the navigation SDK resolves com.google.android.gms:play-services-location for versions 2.14.2, 2.15.1, and 2.16.0-rc.1. Reproduce the Android API 33 failure and verify that the incompatible class change error no longer occurs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.