I use the SymbolManager class to add a marker as SymbolOption on Mapbox. This is the code I wrote to add the marker and it runs:
fun addMarker(marker : MapboxMark