'How to fix Unity Applovin Integration There are 2 event systems in the scene problem

Normally, i have one event system on the scene, but if i display ads (applovin) then one more event system is added. This issue causes "There are 2 event systems in the scene." problem. How can i fix this?

[My scene][1] [1]: https://i.stack.imgur.com/EY5e9.jpg

My applovin ads code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Gecis : MonoBehaviour
{
    private const string MaxSdkKey = "--";
    private const string InterstitialAdUnitId = "--";

    // Start is called before the first frame update
    void Start()
    {
        MaxSdkCallbacks.OnSdkInitializedEvent += (MaxSdkBase.SdkConfiguration sdkConfiguration) => {
            // AppLovin SDK is initialized, start loading ads
            InitializeInterstitialAds();
        };
        MaxSdk.SetSdkKey(MaxSdkKey);
        MaxSdk.InitializeSdk();
    }

    private void InitializeInterstitialAds()
    {
        // Attach callbacks
       
       
        MaxSdkCallbacks.Interstitial.OnAdDisplayFailedEvent += InterstitialFailedToDisplayEvent;
        MaxSdkCallbacks.Interstitial.OnAdHiddenEvent += OnInterstitialDismissedEvent;


        // Load the first interstitial
        LoadInterstitial();
       
    }

    void LoadInterstitial()
    {
        MaxSdk.LoadInterstitial(InterstitialAdUnitId);
    }

    public void ShowInterstitial()
    {
        if (MaxSdk.IsInterstitialReady(InterstitialAdUnitId))
        {
          
            MaxSdk.ShowInterstitial(InterstitialAdUnitId);
        }
        else
        {
           
        }
    }

    private void InterstitialFailedToDisplayEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo, MaxSdkBase.AdInfo adInfo)
    {
        // Interstitial ad failed to display. We recommend loading the next ad
        LoadInterstitial();
    }

    private void OnInterstitialDismissedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
    {
        // Interstitial ad is hidden. Pre-load the next ad
        LoadInterstitial();
    }

}


Solution 1:[1]

Open Assets>MaxSdk>Prefabs and delete EventSystem from each prefab

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Insignis Games