Task :app:minifyReleaseWithR8 FAILED

I am trying to package my game for Android and since yesterday I get this error (all I did was add Admob). How can I get rid of it?
I have tried changing sdk, ndk and all stuff I could find on the web with no result.

Follow up: Removing C++ code apparently fixed it