mapbox / mapbox/mapbox-search-android

AddressAutofill suggestions is not working

Open
#177 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Kotlin
Stars
39
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Integrated following Mapbox dependencies
```kotlin
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 ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the listed Kotlin dependencies and the AddressAutofill.create initialization, then call suggestions() with AddressAutofillOptions(). Check the module classpath around the reported IsoLanguageCode error. Done means the address suggestions call works with the documented dependencies, or the supported workaround is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.