'Error importing mapbox packages into Android Studio

I'm trying to import the basic mapbox packages into Android Studio, but it isnt recognised it. Can someone help me?

import com.mapbox.maps.MapView;
import com.mapbox.maps.Style;

Cannot resolve symbol 'mapbox'



Solution 1:[1]

You need to install and configure it first. https://docs.mapbox.com/android/maps/guides/install/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 marco