Unable to Integrate OneSignal Android SDK on new Gradle Structure Android Studio Bumblebee

776 Views Asked by At

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?

1

There are 1 best solutions below

0
On

Try like this...

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    ..........
    id 'com.onesignal.androidsdk.onesignal-gradle-plugin' version '[0.14.0, 0.99.99]' apply false
}

task clean(type: Delete) {
    delete rootProject.buildDir
}