EAS Build Android fails with "react-native-library" Could not find method compile() for arguments [com.facebook.react:react-native:+]

EAS Build with Android has been failing with error:

A problem occurred evaluating project ':react-native-library'
Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

expo managed workflow (dev client)
expo sdk: 48
eas-cli: 3.15.0

I have tried to upgrade to latest beta 49 without successful result

Hi @seyaobey.dev

It looks like you have an out of date dependency.

Please post your dependencies and devDependencies sections from package.json