I recently downloaded the ViewPagerIndicator library and imported it into android studio. After adding it to my project I get a rendering error \"The following classes could
The issue in my case was different compile and target SDK version,
mentioned in my main app module and your added lib module.
Once I matched both of them it worked perfectly.
So just open build.gradle file of app-level and lib module-level check for the SDK version.