Search Unity

Question Could not find file UnityEngine.Purchasing.Security.dll

Discussion in 'Unity IAP' started by goodgate, Mar 13, 2023.

  1. goodgate

    goodgate

    Joined:
    May 29, 2017
    Posts:
    2
    I tried to register an app in the Google Play Store, but a warning window came up that I had to do library 4 or higher.

    I installed it in the Purging 4.4.0 app in Package Manager, set it to On, and even authenticated the license key.

    An error appears when building.


    File not found
    ...\Library\Script Assembly\Unity Engine.purchase.security.dll"

    Script contains compiler errors for player build errors


    1. The in-app deletion package version has been changed.
    2. Library folder deleted successfully.
    3. I deleted it from the app and reinstalled it.

    But it's the same situation. Help me.

    UNI.T 2020.3.28f1
     
  2. glenhunter

    glenhunter

    Unity Technologies

    Joined:
    Apr 2, 2019
    Posts:
    92
    Hi there,

    I'm unfamiliar with Purging? I'm assuming you mean in-app purchasing. Do you get this error when building a fresh Unity project with only IAP and its samples installed? Would you also be able to try a more up-to-date version of IAP (4.5.2)?
     
  3. BraindanceDev

    BraindanceDev

    Joined:
    Oct 25, 2022
    Posts:
    15
    IAP version 4.9.4
    Unity 2020.3.22f1

    same problem, can not build because "(0,0): error System.IO.FileNotFoundException: Could not find file "[...]\Library\ScriptAssemblies\UnityEngine.Purchasing.Security.dll""

    Additionally, after entering the key there is only message "You are not authorized to set the license key"