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

Cannot get around loading my .apk to Oculus because of Install Failed Older SDK

Discussion in 'Editor & General Support' started by firefly14, Nov 9, 2020.

  1. firefly14

    firefly14

    Joined:
    Sep 2, 2019
    Posts:
    13
    I get a clean build (Build completed with a result of 'Succeeded', GearVR or Go = False Quest = True). But everytime I try to sideload (either direct via ADB or through sidequest) I get the error
    adb: failed to install c:\adb\TCXRTrial-BUSE155-Android.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1418741418.tmp/base.apk (at Binary XML file line #9): Requires newer sdk version #30 (current version is #25)]

    I have tried every level of SDK. the last one was upgraded on my player configuration to be min v30, which I don't always like to do. I sometimes run on purpose one lower than the last. But at any rate, it seems to think I have version 25. Can anyone help out here. What am I missing.

    I have also loaded and made sure that my android studio has loaded the latest. But I suspect that some where on my computer is an older version that Unity is picking up. How do I fix this?
    TY for you time
     
    Altaireon likes this.
  2. firefly14

    firefly14

    Joined:
    Sep 2, 2019
    Posts:
    13
    Alrighty, I fixed this. But it is odd that I followed instructions to use Android Studio from Unity blogs. The truth is, forget about that for the moment until someone from Unity speaks up. The only way I could fix it was to go against what was written and make use (in preferences) the loaded SDK from Unity. Then in player setup use Min API level of my oculus go and set target to automatic. That actually finally got a build to work. Now I have other issues but that was the main point to at least get something to work on the headset. BTW, if you don't have sidequest loaded, you are missing out on easier testing :)