No build, gradle failure

Anyone knows how to fix it? I tried so many things including upgrading to new version of engine, using default ndk and skd, gradle, using android studio’s stuff instead of unity’s. no result

I got the same error I just had to get rid of IAPs and ads

Solution for me was: use Gradle and android manifests from the version that was working properly. I also reinstalled unity with all it’s modules and Gradle that is compatible.