Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Unity Ads 4.3 - Throw exception - just want to go back to 4.2.1 !

Discussion in 'Unity Ads & User Acquisition' started by KrakordStudio, Aug 19, 2022.

  1. KrakordStudio

    KrakordStudio

    Joined:
    Aug 5, 2019
    Posts:
    9
    Hello, I have been updating my sdk to 4.3 but now I am stuck because it throws Exception with the banner placement :

    AndroidJavaException: java.lang.ClassNotFoundException: com.unity3d.services.banners.view.BannerPosition


    Others have the same issue and suggest to go back to previous version.

    I just want to go back to 4.2.1 which worked just fine.
    -> but it only suggest 3.7.5 which doesn't work with me...

    Please, how do I just downgrade to 4.2.1 ? No link are available and it is shame...

    Thank you
     
    WaffleChicken likes this.
  2. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    WaffleChicken and shaysw like this.
  3. KrakordStudio

    KrakordStudio

    Joined:
    Aug 5, 2019
    Posts:
    9
    Hello, thank you, it worked.

    How is it so easy but not written directly in the package manager or more obvious in the documentation ?
     
    cynuro likes this.
  4. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Thanks for feedback, I'll see how we can update docs.

    /Rasmus
     
  5. anthonyjamesgirdler

    anthonyjamesgirdler

    Joined:
    Mar 15, 2018
    Posts:
    25
    I'm having the same issue, but I don't think I've ever installed 4.2.1
    Will this method still work for me ?

    I tried installing 3.7.5, but then the Ads won't initialize.

    I've changed the Ads package to 4.2.1 in manifest.json, but I don't understand what this has done.
    It feels like I've just told it to think it has a different package, but I haven't actually changed anything.

    Edit: So it worked. I'd still like to understand what just happened. Did I actually install a different package by changing a few numbers in a text file ?
     
    Last edited: Oct 11, 2022
  6. Unity_Adamski

    Unity_Adamski

    Unity Technologies

    Joined:
    Jul 20, 2020
    Posts:
    110
    @anthonyjamesgirdler That text file is what informs the Editor what packages it should be pulling in. This is an entirely valid way of changing package versions if that package version is not available in the Package Manager UI.
    You can even use this method to specify a local path for a package that you wish to use.
     
  7. youbek123

    youbek123

    Joined:
    Nov 4, 2016
    Posts:
    17
    Hey guys, what is the proper way of fixing this bug, I know the question was about going back to the working version, but 4.3.0 is an LTS release and it having broken banner ad positioning doesn't seem right to me. There should be a proper fix. I just couldn't find anything in the docs or online. Docs documentation on banners didn't change, still uses BannerPosition and SetPosition APIs.
     
  8. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    Do you still have any issue if following the latest documentation?

    https://docs.unity.com/ads/en/manual/ImplementingBannerAdsUnity

     
  9. noobogami

    noobogami

    Joined:
    Jul 24, 2021
    Posts:
    44
    I still have problem with 4.3.0, new documentation didn't changed anything related to problem there is still
    Advertisement.Banner.SetPosition(_bannerPosition);
    and this is still has error on 4.3.0
    I downgraded to 4.2.1 (manually by changing packages manifest file) and problem is fixed.