The crash is likely due to inconsistencies in the versions of the Common SDK used by the different Mapbox SDKs you have implemented in your app. It is essential that all the SDKs – Search, Maps, and Navigation – are using the same versions of the Common SDK to ensure compatibility, as noted in the Search SDK installation guide.
Here’s how you can address the issue:
1. Check Common SDK Versions:
a. Initially, identify the Common SDK version that each of the Mapbox SDKs (Search, Maps, and Navigation) is using in your current setup. This information can be found in the corresponding release notes on GitHub for the Search SDK, Maps SDK, and Navigation SDK.
b. Compare these versions to determine whether the SDKs are utilizing the same version of the Common SDK. If discrepancies are found, proceed to the next step.
2. Update SDK Versions:
a. Based on the comparison, identify and select compatible versions of the Search, Maps, and Navigation SDKs that utilize the same Common SDK version.
b. Update the implementation in your build file with the compatible versions.
For example:
implementation "com.mapbox.search:mapbox-search-android:1.0.0-rc.6"
implementation "com.mapbox.maps:android:10.14.0"
3. Test Your App:
a. After updating the SDK versions, thoroughly test your Android app to ensure that the crash is resolved and that the SDK functionalities are working as expected.
If you continue to experience issues, please provide detailed information, including SDK versions, crash logs, and any relevant context, and reach out to Mapbox Support for further assistance.