As Android Studio is rolling out the useless updates they have changed the gradle structure to significantly complex.
I am trying to integrate OneSignal SDK in my Android App and following their documentation https://documentation.onesignal.com/docs/mobile-sdk-setup
However their documentation is decades old and is not compatible with new gradle structure, can someone please help me to integrate this simple plug in?
Try like this...