Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlaceAutocomplete error: Cannot access class 'com.mapbox.search.internal.bindgen.ApiType' #296

Open
1 of 4 tasks
kw2583 opened this issue Nov 19, 2024 · 0 comments
Open
1 of 4 tasks
Labels
bug Something isn't working

Comments

@kw2583
Copy link

kw2583 commented Nov 19, 2024

Environment

  • Search SDK Component (check at least one)
    • Core Search SDK (SearchEngine class, and etc.)
    • Offline Search SDK (OfflineSearchEngine class, and etc.)
    • Address Autofill SDK
    • Search UI 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.

@kw2583 kw2583 added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant