Search Unity

Unity ads problem

Discussion in 'Unity Ads' started by whitehatgames1, Apr 1, 2019.

?

UnityAdsProblem

  1. UnityAds

    0 vote(s)
    0.0%
  2. UnityAds

    0 vote(s)
    0.0%
  1. whitehatgames1

    whitehatgames1

    Joined:
    Dec 29, 2018
    Posts:
    2
    Guys, help please.
    If built in ads extension in UnityAds disabled my project compile is good.
    But if built in ads extension in UnityAds enabled compile is bad.
    Using Unity Monetization 3.0.3.
     

    Attached Files:

  2. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
    Hello @whitehatgames1 ,
    Gradle fails to compile because of the duplicate headers. It looks like you have more than one definition of the Unity Ads code base. You can only have one definition of the Unity Ads Framework in your code base or you will run into issues with duplicate class definitions. If you are using AssetStore package, please, remove a PackageManager package and disable Ads in Service Window and vice versa.
     
    whitehatgames1 likes this.
  3. whitehatgames1

    whitehatgames1

    Joined:
    Dec 29, 2018
    Posts:
    2
    Hi!
    Thank you very much!
    You helped me a lot.