It has been resolved invoking the parent project. ...
# gradle
a
It has been resolved invoking the parent project. Once I've done it, calling the child again does not throws the exception anymore. I leave the thread here to help others with the same issue.