I has problem when build app via Gradle as below. And I got the error: Error:(516) Attribute \"font\" already defined with incompatible format. Error:(298) Original attribut
In my case the problem was in a library that defined attribute "app:font".
I removed that library and all the places in xml where were written "app:font" and my problem disappeared.
As an additional example:
If you have got the error AAPT: Attribute "iconTint" already defined with incompatible format then you should search and delete "app:iconTint" in your xml to resolve this problem.