Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Infinite loop during upgrade from 1.22 to 1.23

Discussion in 'Unity IAP' started by adbourdages, Oct 22, 2019.

  1. adbourdages

    adbourdages

    Joined:
    Jul 8, 2012
    Posts:
    55
    Hello,

    I'm getting an infinite loop during the upgrade process: compile, refresh assets, compile, assets, compile and sometimes the following dialog box. Doesn't matter if I OK or Cancel out, the loop repeats.

    I downloaded the new version from the Asset Store (download then import) and then this started. I've restarted the editor a few times but nothing.

    Cheers,
    Alain-Daniel
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,936
  3. adbourdages

    adbourdages

    Joined:
    Jul 8, 2012
    Posts:
    55
    Can't believe I didn't mention the unity version :-/. In any case, it is 2018.2.14f1.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,936
    Does it work correctly on a new/empty project, and importing IAP from scratch?
     
  5. adbourdages

    adbourdages

    Joined:
    Jul 8, 2012
    Posts:
    55
    Yes, it does work on an empty project.

    On the main project, the following error is probably relevant:

    -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Unity.PackageManagerUI.Editor.dll
    Compilation failed: 1 error(s), 0 warnings
    -----CompilerOutput:-stderr----------
    error CS0006: Metadata file `Assets/Plugins/UDP/UDP.dll' could not be found
    -----EndCompilerOutput---------------
    - Finished compile Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll
    error CS0006: Metadata file `Assets/Plugins/UDP/UDP.dll' could not be found

    Compilation failed: 1 error(s), 0 warnings

    (Filename: Line: 0)​

    The Plugins/UDP folder exists but is empty.

    I did attempt to copy the UDP and UnityPurchasing folders from the empty project to the main project and things looked good for a while (it compiled in the editor). However a build for android resulted in the following DEX error:

    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (cn.com.wali.basetool.io.a) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
     
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,936
    It may be caused by copying files outside of the Unity editor, and perhaps missing the associated .meta file or similar. We would need specific steps to reproduce on a new project. We have heard of reports that deleting the /Library folder may cause issues (which it shouldn't, as it should be an output only folder), so something to check also. Meaning, you might try deleting the /Library folder, and trying again. Make a back up first.
     
  7. chishti

    chishti

    Joined:
    May 21, 2009
    Posts:
    188
    I am facing the same issue. I just upgraded to latest IAP plugin and its importing in an infinite loop.
    I removed Library folder and it was displaying same loop of importing IAP package.
    I am stuck here unable to proceed for build. @JeffDUnity3D any other solution?
    I am using Unity 2018.2.4f1.
     

    Attached Files:

  8. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    8,936
unityunity