I was trying to add a dependency to my application and I accidentally modified the wrong build.gradle file and now my application no longer builds correctly.
I fixed my issue; I discovered that new projects didn't have the issue with the gradle, so I made a new project and transferred all my src code files and it works fine again.