mapbox / mapbox/mapbox-search-android
AddressAutofill suggestions is not working
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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