• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

PolyUtil is cannot be resolved by android studio.

I am using google play services 11.8.0
Here is a function of my android app where PolyUtil is cannot be resolved by android studio what is the reason.Rest everything is okay.Please help me to correct it.


public void displayDirection(String[] directionsList)
{

int count = directionsList.length;
for(int i = 0;i<count;i++)
{
PolylineOptions options = new PolylineOptions();
options.color(Color.RED);
options.width(10);
options.addAll(PolyUtil.decode(directionsList));

mMap.addPolyline(options);
}
}
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones