I am trying to build an android library (.aar) with gradle 3.1.1. Recently migrated from gradle 2.0 to this version. In the gradel there is a step to copy dependencies before archiving. The step to archive is found in the suggested solution in this post, https://stackoverflow.com/questions/33445270/how-to-include-jar-dependency-into-an-aar-library. But the solution does not work after gradle upgrade.
I am looking to get a solution as part of this post and help is much appreciated.
Feel free to reply here as well so the solution can be open to all who are suffering from the same.