I am currently implementing the Mapbox Navigation SDK on Android, and I am facing an issue with disabling auto simulation in my application. According to the documentation, auto simulation can be disabled by removing the locationEngine from the NavigationOptions. However, I am encountering an error where the accessToken and locationEngine are showing as unresolved references when trying to configure NavigationOptions.
val navigationOptions = NavigationOptions.Builder(applicationContext)
.accessToken(getString(R.string.mapbox_access_token)) // This line shows an unresolved reference error
.locationEngine(null) // This line also shows an unresolved reference error
.build()
Mohammed Zainul Abideen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.