I commented the lines below in the platforms/android/build.gradle file:
//debugCompile project(path: ‘CordovaLib’, configuration: ‘debug’)
//releaseCompile project(path: ‘CordovaLib’, configuration: ‘release’)
and added:
compile project(‘:CordovaLib’)
Thanks!