Sentry-Android not deobfuscating

we are using Sentry on premise in the version
Sentry 20.11.1 4468076
It all works fine except for one thing. The Android deobfuscation is not working.
I used the latest version 5.0.1 and I can see the debug symbols in the settings:

`58dc8b6c-2c72-5254-a790-b997ab9a5abf` 33.3 MB
10 minutes ago
proguard mapping

So it should work. In the iOS project it works fine so I don’t expect it to be a problem with the backend.

I’m using the 2.0.0 version of the android-gradle plugin. Not sure this is important.
The sentry config in the Android project has the settings enabled like this:

sentry {
    autoUpload = true
    uploadNativeSymbols = false
    includeNativeSources = false

But I still get errors like

IllegalStateException *d.a.a.a.a.a.q.c in onClick*

Any idea what I might have missed?


— EDIT —

Looks like I put it into the wrong build.gradle file.