If all else fails, a simple solution worked for me, you need to change the version of maven:
of
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
to
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
Android Maven Version: Link
Android Maven Incompatible with gradle 2.14 Fix: Link
Deepak Gupta Sep 05 '16 at 12:10 2016-09-05 12:10
source share