appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
20 stars 3 forks source link

Appodeal installation : Installing without admob result in crash #26

Closed c0ffeec0der closed 2 years ago

c0ffeec0der commented 2 years ago

Steps to Reproduce

Follow installation steps at https://github.com/appodeal/Appodeal-Flutter-Plugin#android

Skip step 3. Admob Configuration (if you use Admob adapter)

<manifest>
    <application>
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="[ADMOB_APP_ID]"/>
    </application>
</manifest>

Result

App will crash

Question

When installed with Admob, the app would run normal. However, without Admob, the app would crash. Is there a way to install without Admob and the app would not crash?

robkawaev commented 1 year ago

Add admob to exclude in implementation com.appodeal.ads in app level build.gradle Example:

implementation ('com.appodeal.ads:sdk:3.0.2.+') {
        exclude group: 'com.appodeal.ads.sdk.services', module: 'adjust'
        exclude group: 'com.appodeal.ads.sdk.services', module: 'appsflyer'
        exclude group: 'com.appodeal.ads.sdk.services', module: 'firebase'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'admob'
        exclude group: 'com.appodeal.ads.sdk.services', module: 'facebook_analytics'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'facebook'
    }