Search Unity

Errors After Install

Discussion in 'Unity IAP' started by LumoKvin, Dec 18, 2019.

  1. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    Why am I getting all these errors? Should I be concerned?

    upload_2019-12-17_20-35-54.png
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Your app would not be expected to run with those errors. Did you delete any folders or packages? We would need more information to troubleshoot, please provide steps to reproduce on a new/empty project and Unity version
     
  3. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I didn't delete anything. These are the steps that I followed:
    • Opened Services Window
    • Clicked to turn on In-App Purchasing
    I went through the prompts normally and I got lots of errors.

    What can I do to completely remove it so I try again?
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Is this on new project? Which version of Unity? You would want to revert to a previous back up that was made just prior to importing IAP (always a good practice when doing major upgrades). Otherwise, from within Unity, delete the Asset/Packages /UDP, /UnityChannel and /UnityPurchasing folders. Make sure the game compiles and runs at this point. But the error sounds like that you may have removed Unity Purchasing from within Package Manager. Make sure that stays in place, IAP requires both the Asset package and the Package Manager component.
     
  5. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    Nope. This is for a project that is 3 months old.
    2019.1.14
    I did that and then there were errors from the compiler. I am opening a backup copy right now.
     
  6. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I was not able to use the backup. I have a manual backup from a week ago but I don't want to loss a weeks worth of work. I went back to the original project.

    I am now getting a different error:

    Capture2.PNG

    upload_2019-12-18_17-47-41.png

    When I try to play the game:
    upload_2019-12-18_17-57-54.png
     
    Last edited: Dec 19, 2019
  7. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I started a brand new project with nothing in it. These are the steps that I went through: https://imgur.com/a/ZMvRyYb

    The last picture contains error messages.
     
  8. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    M
    Make sure you have the "In App Purchasing" package in Package Manager. Please don't post external links.
     
  9. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I just started a brand new project. These are the packages that were already installed:
    Capture.PNG

    I went to the asset store and tried downloading the IAP. This is what happened:
    Capture2.PNG
    upload_2019-12-19_12-56-5.png

    Next, I opened the services window. Under IAP, it said there was an upgrade. I clicked the upgrade. It seemed to work correctly:
    upload_2019-12-19_13-5-54.png
    upload_2019-12-19_13-9-28.png

    Does this mean everything should be working? Is there a way to check or can I safely assume everything is fine now?
     
  10. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You install IAP by enabling it in the Services window (menu Window/General/Services), this should download the Asset. You can try opening IAPDemo scene and see if it works.
     
  11. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I didn't get any errors. The validate button prints to the console, but the login and validate buttons don't do anything:
    upload_2019-12-19_15-37-57.png
     
  12. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    LumoKvin likes this.