Fixed zero division exception in case no data in adapter
Added gradle support
Merge pull request #2 from naghtarr/gradle

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