I am adding a Easypost library to my Android peoject and from my understanding I need to reference it at both settings.gradle and build.gradle. But when I do that, I get the error:
Error:Circular reference between projects:
:Libs:easypost-java-master -> :Libs:easypost-java-master
compile fileTree(dir: 'libs', include: ['*.jar'])
The build.gradle file you marked contains a reference to itself as dependency. This is the shortest possible circular reference. If you remove
you might be fine. I am saying might because I gave up on IntelliJ Idea. Instead of making things easier with regard to Gradle, it just introduced an additional, redundant layer of complexity that I had deal with instead. IntelliJ Idea just did not work out for me.
Best advice I can give is to setup your project manually first in order to understand how gradle handles projects. It is a steep learning curve but in my case it saved a lot more time and headaches in the long run.