The option setting 'android.enableR8=false' is deprecated. Conflict between Admob & Firebase Plugin

I was using Admob and it was building the game fine but when I Imported the firebase plugin it give the following error:
WARNING: The option setting ‘android.enableR8=false’ is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

I also encountered this error when I tried to implement a leaderboard when google admob and firebase was already there, in another project.

I have tried nearly all solutions in this regard, but nothing works for me.
Such as using this solution http://answers.unity.com/answers/1859781/view.htmlhttp://answers.unity.com/answers/1859781/view.html
I need help with this.

Hey there,

Would you be able to provide some more information about this issue? They would be very helpful during my investigation:

  • Which Unity version are you using?
  • Which version of the AdMob plugin you are using?
  • Which version of the Firebase Unity SDK are you using?
  • Can you provide a screenshot from the Unity Editor’s build settings window?
  • Also, if you changed something related to the Android in the Player Settings tab, please provide the screenshot from there as well.