-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- Search SDK Component (check at least one)
- Core Search SDK (
SearchEngineclass, and etc.) - Offline Search SDK (
OfflineSearchEngineclass, and etc.) - Address Autofill SDK
- Search UI SDK
- Core Search SDK (
- Android OS version:
- Devices affected:
- Search SDK Version: 2.5.0
Code examples
val placeAutocomplete = PlaceAutocomplete.create()[versions]
android = "11.8.0"
mapsCompose = "11.8.0"
placeAutocomplete = "2.5.0"
[libraries]
android = { module = "com.mapbox.maps:android", version.ref = "android" }
maps-compose = { module = "com.mapbox.extension:maps-compose", version.ref = "mapsCompose" }
place-autocomplete = { module = "com.mapbox.search:place-autocomplete", version.ref = "placeAutocomplete" }
Observed behavior and steps
Cannot initialize placeAutocomplete. The documentation indicates that the line above should include an API token as a parameter. However, the create() method in 2.5.0 does not take an API token. It should be initialized with default options, which include LocationProvder and ApiType. However, it generates the error indicated in the title: Cannot access class 'com.mapbox.search.internal.bindgen.ApiType'
On the Discord server, there are reports of this same issue going back at least to 2.2.0
Expected behavior
Initialize PlaceAutocomplete and execute queries.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working