Solved it by updating id "com.android.application" version "8.1.0" apply false to id "com.android.application" version "8.7.2" apply false in android/settings.graddle
id "com.android.application" version "8.1.0" apply false
id "com.android.application" version "8.7.2" apply false
android studio didn't told me there was a newer version
(got that info here)