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

MissingReferenceException: No parent activity specified

Discussion in 'Android' started by Zaine7673, Jan 17, 2019.

  1. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    238
    I've just added the Applovin sdk and wrote up the script to display a banner ad on my android application and i get the following error

    Seems like an issue with the sdk itself and im not sure on where to start on resolving this. Found nothing useful on google either.

    Any help would be greatly appreciated.
     

    Attached Files:

  2. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    487
    Looking at your log, it looks like you're running in the editor, is that right? I don't think AppLovin works in editor or on desktop; you'll have to test on device. You can work around the exception by just checking
    #if !UNITY_EDITOR
    before showing the ad (although really I think this is a bug in the AppLovin SDK - ideally it would handle this situation and show a placeholder).

    Cheers,
    Sam
     
  3. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    238
    I've thought of that myself. I've already tried a build and ran it on an android device - it breaks the game. some functions don't work and the banner ad does not show either. I've raised it with Applovin support so just waiting to see what they say.

    will update this in-case anyone else experiences this issue.
     
  4. suitmrt

    suitmrt

    Joined:
    May 19, 2016
    Posts:
    8
    Hello.
    I've downloaded AppLovin demo application and it's not working in the editor. I've tried building the application and installing it on android device, but it does not show up in the menu. I cannot find it through search too. It's like it's even had not been installed. But I found it in the settings (Installed apps) menu. I've tried installing it on other device. Everything is same. I'm just saying that I've put my SDK key in the Android manifest and in the script that should be showing ads.
    What may be the issue?
     
  5. appvillas

    appvillas

    Joined:
    Aug 21, 2015
    Posts:
    14
  6. nakkalokesh99

    nakkalokesh99

    Joined:
    Jul 19, 2017
    Posts:
    7
    There is an error in Android Manifest file
     

    Attached Files:

    Last edited: Oct 23, 2019
  7. Sewmina7

    Sewmina7

    Joined:
    Apr 17, 2018
    Posts:
    6
    Anybody could solve this issue, having the same, I know ads don't work in editor. Mine doesn't work atleast in android devices, Disappointed -_-
     
  8. Asad_Asif

    Asad_Asif

    Joined:
    Jul 17, 2019
    Posts:
    3
    Same