Fixed zero division exception in case no data in adapter
Added gradle support