So as it mentioned in mapbox installation guide, in order to add dependency to top level gradle, this is what should be done:
.
But as you see in the picture it failed to build the gradle and it gives me that error. The structure of project level gradle is also changed to this in Android Studio Bumblebee.
How should I add Mapbox dependencies to my project?
Mapbox dependency should be added into settings.gradle file.
It can be seen here.