I had search solution for this ReportedException: org.gradle.internal.exceptions.LocationAwareException from two days. I know may be this question is duplic
If you have more than one module in your project, make sure that every single resource is in their corresponding module. Also, try to check every single XML, C++, Kotlin and Java files to see if something in your code is not mentioning a resource that does not exist. Also check if translated files have something that the source file doesn't have.