Environment
- Search SDK Component (check at least one)
- 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.
Environment
SearchEngineclass, and etc.)OfflineSearchEngineclass, and etc.)Code examples
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.