Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

"AIP service is disabled" issue workaround

Discussion in 'Unity IAP' started by 2rusbekov, Nov 8, 2019.

  1. 2rusbekov

    2rusbekov

    Joined:
    Jul 12, 2013
    Posts:
    43
    Hi. Had a problem with IAP import process. Checked forum and answers, last post was with "I have no idea" answer.
    I was able to import IAP package from Services window after removing Immediate Window and Editor Coroutine packages from Package Manager. Going to send bug report

    UPDATE: Double cheked, and find out that problem is only Immediate Window
     
    Last edited: Nov 8, 2019
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,905
    Typically when you see IAP Service is disabled, it means that you likely removed the Purchasing package from Package Manager, I haven't heard of other packages causing IAP import issues. Can you provide steps to reproduce here on a new project? it might be faster than a bug report. What version of Unity?
     
  3. 2rusbekov

    2rusbekov

    Joined:
    Jul 12, 2013
    Posts:
    43
    Hi. I tested many variants of importing. For new empty project reproducion steps:
    1. Install Immediate Windows. IAP is installed by default, but you can try to reinstall, nothing changes.
    2. Link or create project in unity services through Services Window, enable analytics and iap services.
    3. Click import/reimport.
    4. Wait for Unity IAP installer promt, and click install now

    You will got error:

    Code (CSharp):
    1. ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
    2. System.Reflection.Assembly.GetTypes () (at <567df3e0919241ba98db88bec4c6696f>:0)
    3. UnityEditor.Purchasing.UnityIAPInstaller+<>c.<DoesMethodExist>b__42_4 (System.Reflection.Assembly assembly) (at Assets/Plugins/UnityPurchasing/Editor/UnityIAPInstaller.cs:653)
    4. System.Linq.Enumerable+<SelectManyIterator>d__167`3[TSource,TCollection,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    5. System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    6. System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    7. System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    8. UnityEditor.Purchasing.UnityIAPInstaller.DoesMethodExist (System.String namespaceName, System.String typeName, System.String methodName) (at Assets/Plugins/UnityPurchasing/Editor/UnityIAPInstaller.cs:658)
    9. UnityEditor.Purchasing.UnityIAPInstaller:Install() (at Assets/Plugins/UnityPurchasing/Editor/UnityIAPInstaller.cs:367)
    10.  
    Editor versions I've tested 2019.2.4 and 2019.2.11
     

    Attached Files:

  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,905
    Are saying that installing Immediate Window package automatically installs IAP? That would not be expected. Does IAP work as expected, without the package? And your steps you mentioned are contrary, you can't have IAP installed prior to enabling Analytics and then IAP.
     
  5. 2rusbekov

    2rusbekov

    Joined:
    Jul 12, 2013
    Posts:
    43
    Looks like You little bit missunderstood me.

    No. I mean IAP package (not service) is installed by default in package manager. I created new project and iap was already installed. I didn't touch it

    I enabled Analytics and IAP services (not package) at second step.

    IAP works as expected
     
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,905
    Got it, you meant the Purchasing package, not IAP.
     
  7. 2rusbekov

    2rusbekov

    Joined:
    Jul 12, 2013
    Posts:
    43
    Yes, it's title is in-app purchasing package, I wrote it as IAP, sorry