I implemented the library in my project and faced such a situation, in order for it to work and not crash it was necessary to change the version of android.tools to a lower one. I had this default
classpath 'com.android.tools.build:gradle:1.5.0' and until I changed it to just such (down)
classpath 'com.android.tools.build:gradle:1.2.3' I got this error
Error:Cannot access first() element from an empty List if the old version is 1.2.3, then everything works, and when I put 1.5.0, it doesn't work ...
Why is this so? What if I want to use newer versions?