When asked to upgrade to the newest Gradle 4.1? (2018-04-14) I get very weird errors I have never seen before. The app runs for years without this issue.
After searching the complete project again, I did find a @android:attr/windowEnterAnimation, in a place I did not expect.
For appt2 errors? Here is a nice article on how to move forward.