Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

IAP conflicts with AdMob

Discussion in 'Unity IAP' started by Octoverse, Jan 30, 2021.

  1. Octoverse

    Octoverse

    Joined:
    Oct 14, 2018
    Posts:
    25
    Hello, gentlemen! Please, help me!

    I have +999 error when I try to build a simple Android project (with only a Canvas and buttons) after import IAP. Some solution for this? (Working normally in the editor)

    Thanks in advance!

    I tried to reimport all but the same errors.

    Unity 2020.1.2f1 / IAP 2.2.6


    EDIT:
    I managed to reproduce the error. It occurs after importing the Google AdMob 5.4.0 package. Is there any reason to cause the conflict with IAP?

    EDIT²:
    I believe I have confirmed it, because as soon as I import the .package from Google AdMob, it is no longer possible to generate a build without errors. They work or one or the other, both don't.

    We can fix this conflict? With only IAP, the build is a success (or vice-versa), but after import AdMob (or vice-versa) package, errors, errors and more errors... :/

    I using Google AdMob 5.4.0 and IAP 2.2.6 with Unity 2020.1.2f1
     
    Last edited: Jan 30, 2021
  2. Octoverse

    Octoverse

    Joined:
    Oct 14, 2018
    Posts:
    25
    UPDATE:
    I have no idea if it was because I deleted the billing-3.0.1.aar file or because I reimported everything, but apparently, selecting "reimport all", sometimes works, sometimes not, but it is a solution to this conflict through AdMob, IAP and Google Play Services.
     
    Polyfemos likes this.
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    It sounds like AdMob might be importing the Google libraries also causing duplicate definitions. Sorry we don't have an immediate solution for you, but it sounds like you've already resolved your issue.
     
    Octoverse likes this.
  4. Octoverse

    Octoverse

    Joined:
    Oct 14, 2018
    Posts:
    25
    Thanks by your response! "Reimport all" works well!