I'm new to Kotlin and Java programming and have just finished the basics. I'm currently trying to build a Mapbox navigation Android app but am running into several issues related to various Mapbox modules, including replay, examples, ui, Routeline, tripprogress, and voice.
Specifically, I am unable to import some classes from these modules. Below are the details of my setup:
import com.mapbox.navigation.core.replay.ReplayLocationEngine
import com.mapbox.navigation.examples.R
import com.mapbox.navigation.examples.databinding.MapboxActivityTurnByTurnExperienceBinding
import com.mapbox.navigation.ui.maneuver.api.MapboxManeuverApi
import com.mapbox.navigation.ui.maps.route.line.model.MapboxRouteLineOptions
import com.mapbox.navigation.ui.tripprogress.api.MapboxTripProgressApi
import com.mapbox.navigation.ui.voice.api.MapboxSpeechApi
I have added the necessary dependencies as well:
dependencies {
implementation 'com.mapbox.navigation:android-navigation:2.11.1'
implementation 'com.mapbox.navigationcore:navigation:3.0.2'
implementation 'com.mapbox.navigationcore:ui-components:3.2.0'
// other dependencies...
}
I have tried invalidating caches, cleaning, rebuilding, and restarting, but the issue persists.
Any workable solution or guidance would be greatly appreciated. Thank you in advance for your assistance!