"Remember that if you use the jar you have to remove view folder and viceversa."
Okay, that was the problem. I didn't know that when I added the source code to the library, I had to remove the jar file. I removed the file, removed the dependency from the build.gradle file and cleaned the project, and now my project runs. Whew!