- Home /
Migrating IAP according to documentation gives console error.
Background I am trying to upgrade an old project to use the new IAM, moving from Addon to using the Package manager version 3.x. I am using Unity 2019.4.19f1 and on a MacBook Pro. Following these instructions (https://docs.unity3d.com/2019.4/Documentation/Manual/com.unity.purchasing.html)
Problem I got to step 3 but after deleting the whole folder with the subfolders, Assets/Plugins/UnityPurchasing/*
I had to go back and restore a specific file since the editor was complaining about it:
It feels like there is some reset that needs to be done, or some refresh / regeneration of folders?
I did also use the Windows -> Unity IAP -> Delete for/Prepare for upgrade to 3 option.
The Error from Console is pasted below for reference
DirectoryNotFoundException: Could not find a part of the path “/PATH_TO_PROJECT/Assets/Plugins/UnityPurchasing/Editor/IAPUpdaterPreferences.json". System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <9577ac7a62ef43179789031239ba8798>:0) System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) (at <9577ac7a62ef43179789031239ba8798>:0) (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool) System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) (at <9577ac7a62ef43179789031239ba8798>:0) System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) (at <9577ac7a62ef43179789031239ba8798>:0) System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) (at <9577ac7a62ef43179789031239ba8798>:0) System.IO.StreamReader..ctor (System.String path) (at <9577ac7a62ef43179789031239ba8798>:0) (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string) System.IO.File.ReadAllText (System.String path) (at <9577ac7a62ef43179789031239ba8798>:0) UnityEditor.Purchasing.UnityIAPUpdater.LoadPreferences (System.Boolean& autoCheck, System.String& skipVersion) (at <2d7779cb8f3840989e79e2ad6995b2c7>:0) UnityEditor.Purchasing.UpdaterWindow:Init()
Your answer
Follow this Question
Related Questions
Chrome web store payment 0 Answers
Build with in-app purchase 1 Answer
IAP fails on Windows Store 0 Answers
Problem with Unity IAP plugin and Windows Store (0x80190190) 0 Answers