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

AddressAutofill suggestions is not working #177

Open
shahalR opened this issue Jan 4, 2024 · 2 comments
Open

AddressAutofill suggestions is not working #177

shahalR opened this issue Jan 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@shahalR
Copy link

shahalR commented Jan 4, 2024

Integrated following Mapbox dependencies

implementation 'com.mapbox.maps:android:10.15.1'
implementation "com.mapbox.search:place-autocomplete:1.0.0-rc.7"
implementation "com.mapbox.search:autofill:1.0.0-rc.7"

And initialized AddressAutofill with
addressAutofill = AddressAutofill.create(getString(R.string.mapbox_access_token))

But while using suggestions() to get address list, getting

Cannot access class 'com.mapbox.search.common.IsoLanguageCode'. Check your module classpath for missing or conflicting dependencies`

val addresses = addressAutofill.suggestions(searchQuery!!, AddressAutofillOptions())

Is there any work around this ? or do I need to use the API feature ?

@shahalR shahalR added the bug Something isn't working label Jan 4, 2024
@DasserBasyouni
Copy link

Any updates regarding this?

@Trishun
Copy link

Trishun commented Aug 7, 2024

Hi @DasserBasyouni @shahalR
I've had problem with suggestions method suggestions in place autocomplete. I spent two days, but crucial was adding project dependencies:

    implementation "com.mapbox.search:base:$searchApiVersion"
    implementation "com.mapbox.search:mapbox-search-android-native:$searchNativeVersion"

In my case

    searchApiVersion = '2.3.1'
    searchNativeVersion = '2.2.1'

Every release has native lib version described, it must match.

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

3 participants