Infinite loop during upgrade from 1.22 to 1.23

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

What version of Unity? You might want to start with a backup of your project just prior to the IAP upgrade. Then these steps may help IAP Breaking the project. TypeLoadException

Can’t believe I didn’t mention the unity version :-/. In any case, it is 2018.2.14f1.

Does it work correctly on a new/empty project, and importing IAP from scratch?

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.

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.

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.

5102180--503195--Screen Shot 2019-10-24 at 5.39.06 PM.png

@chishti From your project back up, try importing IAP again from the Asset Store instead of the Services window, and vice versa. It works for me either way in Unity 2018 and 2019 when upgrading this sample project in my testing Sample IAP Project Some people have reported one of the ways works for them, the other doesn’t. Also, this may help IAP Breaking the project. TypeLoadException