Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Build Fails Unity IL2CPP Fails to Build

Discussion in 'Scripting' started by Mashimaro7, Jun 24, 2021.

  1. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    I didn't have this issue until I installed this package

    https://readyplayer.me/

    I already posted before about an issue where there was "Multiple Precompiled Assemblies of the Same Name". I fixed that issue by not importing the NewtonSoft package with this package, but now it fails to build with this error,

    Code (CSharp):
    1. Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\2020.3.12f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\ichig\AppData\Local\Temp\tmp609B.tmp" -o "D:\VR-Chat\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_46B0A19982B1791315E878C567389A2D\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction "C:\Program Files\2020.3.12f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Development\StaticLibs\armeabi-v7a\baselib.a" -llog -rdynamic -fuse-ld=gold.exe
    2.  
    3. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4086: error: undefined reference to '_CWebViewPlugin_Init'
    4. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4104: error: undefined reference to '_CWebViewPlugin_Destroy'
    5. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4114: error: undefined reference to '_CWebViewPlugin_SetMargins'
    6. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4123: error: undefined reference to '_CWebViewPlugin_SetVisibility'
    7. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4132: error: undefined reference to '_CWebViewPlugin_SetAlertDialogEnabled'
    8. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4141: error: undefined reference to '_CWebViewPlugin_SetScrollBounceEnabled'
    9. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4162: error: undefined reference to '_CWebViewPlugin_SetURLPattern'
    10. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4188: error: undefined reference to '_CWebViewPlugin_LoadURL'
    11. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4209: error: undefined reference to '_CWebViewPlugin_LoadHTML'
    12. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4230: error: undefined reference to '_CWebViewPlugin_EvaluateJS'
    13. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4243: error: undefined reference to '_CWebViewPlugin_Progress'
    14. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4253: error: undefined reference to '_CWebViewPlugin_CanGoBack'
    15. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4263: error: undefined reference to '_CWebViewPlugin_CanGoForward'
    16. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4273: error: undefined reference to '_CWebViewPlugin_GoBack'
    17. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4282: error: undefined reference to '_CWebViewPlugin_GoForward'
    18. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4291: error: undefined reference to '_CWebViewPlugin_Reload'
    19. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4308: error: undefined reference to '_CWebViewPlugin_AddCustomHeader'
    20. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4329: error: undefined reference to '_CWebViewPlugin_GetCustomHeaderValue'
    21. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4355: error: undefined reference to '_CWebViewPlugin_RemoveCustomHeader'
    22. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4368: error: undefined reference to '_CWebViewPlugin_ClearCustomHeader'
    23. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4377: error: undefined reference to '_CWebViewPlugin_ClearCookies'
    24. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4386: error: undefined reference to '_CWebViewPlugin_SaveCookies'
    25. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4399: error: undefined reference to '_CWebViewPlugin_GetCookies'
    26. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4429: error: undefined reference to '_CWebViewPlugin_SetBasicAuthInfo'
    27. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4446: error: undefined reference to '_CWebViewPlugin_ClearCache'
    28. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4114: error: undefined reference to '_CWebViewPlugin_SetMargins'
    29. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4123: error: undefined reference to '_CWebViewPlugin_SetVisibility'
    30. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4132: error: undefined reference to '_CWebViewPlugin_SetAlertDialogEnabled'
    31. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4141: error: undefined reference to '_CWebViewPlugin_SetScrollBounceEnabled'
    32. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4188: error: undefined reference to '_CWebViewPlugin_LoadURL'
    33. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4230: error: undefined reference to '_CWebViewPlugin_EvaluateJS'
    34. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4243: error: undefined reference to '_CWebViewPlugin_Progress'
    35. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4253: error: undefined reference to '_CWebViewPlugin_CanGoBack'
    36. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4263: error: undefined reference to '_CWebViewPlugin_CanGoForward'
    37. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4273: error: undefined reference to '_CWebViewPlugin_GoBack'
    38. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4282: error: undefined reference to '_CWebViewPlugin_GoForward'
    39. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4291: error: undefined reference to '_CWebViewPlugin_Reload'
    40. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4355: error: undefined reference to '_CWebViewPlugin_RemoveCustomHeader'
    41. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4368: error: undefined reference to '_CWebViewPlugin_ClearCustomHeader'
    42. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4446: error: undefined reference to '_CWebViewPlugin_ClearCache'
    43. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4377: error: undefined reference to '_CWebViewPlugin_ClearCookies'
    44. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4386: error: undefined reference to '_CWebViewPlugin_SaveCookies'
    45. D:\VR-Chat\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Webview.cpp:4104: error: undefined reference to '_CWebViewPlugin_Destroy'
    46. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    47.  
    48.  
    49.    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    50.    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    51.    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
    52.    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
    53. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    54. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    55. UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    56. UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    57. UnityEditorInternal.IL2CPPBuilder.Run () (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    58. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    59. UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    60. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    61. UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    62. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    63. UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    64. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    65.  
    66.  
    From what I gather it's an issue with the NDK? I'm not sure why this is happening, if I revert to my GitHub branch pre import this issue does not occur. Literally the only thing I did was import this one package. I even tested it by restoring the branch, building, then creating a new branch based off the same one, importing Ready Player Me(excluding NewtonSoft because my project apparently already has it, like so,

    https://imgur.com/a/kuwjOuj

    And building and it fails the second time. There is this error on import, however,

    Code (CSharp):
    1. The assembly search path `D:/VR-Chat/Assets/Plugins/Newtonsoft Json/Runtime/AOT` does not exist
    2. at <empty>:line 0
    3.  
    I mean, I can assume removing the NewtonSoft package is what is causing the error, but if I don't remove it, there's a multiple precompiled assemblies issue. I have tried contacting the Ready Player Me team with no response.

    Can someone please help me fix this? Thanks.

    Edit: I just tested with a blank project, with nothing in it, still had the "Multiple precompiled assemblies of same name" errors.

    Edit x2:I think I solved it? I switched it to mono and erased the two conflicting files, also upgraded unity to 2021, not sure if that helped. It might be a band-aid fix, not sure why switching from ILC2PP helped, I'd like to know a proper solution if there is one...
     
    Last edited: Jun 25, 2021
  2. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    I actually realized it definitely is removing the package that's causing the issue, but I don't know what to do because it just gives me the "multiple precompiled assemblies of the same name" error if I don't remove it...
     
  3. RadRedPanda

    RadRedPanda

    Joined:
    May 9, 2018
    Posts:
    1,593
    Can you post the whole error message? If it says it's NewtonSoft.Json.dll which is duplicated, I can see in the image the package came with two of those. The error is saying that they both have the same name, although I wouldn't be able to tell you how to fix it without looking at what's in them.

    If they're the exact same assembly, and don't quote me on this, but I'd imagine just deleting one would work.
     
  4. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    Okay, I'll post both the full errors, I have tried deleting both, and just one or the other, but deleting any one of them causes some sort of issue. I've been doing a lot of reading, and it sounds like this is an issue caused by Unity introducing the com.unity.nuget.newtonsoft-json package in by default and some packages that were created before this change include their own newtonsoft.json.dll files, but again, if I delete or rename one or the other or both, it gives a different error(the error in this post was after not deleting, but not including both)

    Code (CSharp):
    1. Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform. Only one assembly with the same name is allowed per platform. (D:/VR-Chat/Library/PackageCache/com.unity.nuget.newtonsoft-json@2.0.0/Runtime/Newtonsoft.Json.dll)
    2.  
    3. Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform. Only one assembly with the same name is allowed per platform. (Assets/Plugins/Newtonsoft Json/Runtime/Newtonsoft.Json.dll)
    These are the two errors.
     
    Last edited: Jun 25, 2021
  5. RadRedPanda

    RadRedPanda

    Joined:
    May 9, 2018
    Posts:
    1,593
    Yep, seems like you found the real issue to the problem. My best advice is to go through the multiple stack exchange and other solutions and try them out to see if that fixes the issue. Other than that, I can't help you myself, so if that doesn't work, hopefully someone else will know the correct solution.
     
  6. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    Can anybody else help please? I've been looking everywhere, I tried every solution I've found and none of them seem to work.
     
  7. namangupta98

    namangupta98

    Joined:
    Jun 18, 2021
    Posts:
    5
    Having the same issue. I removed one of the dll from the Assets/Plugins folder. Now I get new errors which says

    Code (CSharp):
    1. JsonSerializerSettings.TypeNameAssemblyFormat' is obsolete: 'TypeNameAssemblyFormat is obsolete. Use TypeNameAssemblyFormatHandling instead.
    After that if I do the necessary changes as mentioned above, I receive this error

    Code (CSharp):
    1. Cannot implicitly convert type 'System.Runtime.Serialization.Formatters.FormatterAssemblyStyle' to 'Newtonsoft.Json.TypeNameAssemblyFormatHandling'. An explicit conversion exists (are you missing a cast?)
     
  8. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    @Mashimaro7 The issue is actually quite simple to resolve but you need to understand the following.

    You're importing a third party Unity package that contains an assembly definition file (Plugins/Webview/Webview.asmdef).
    That assembly definition is referring to the Newtonsoft Json dll that they ship it with (Plugins/NewtonsoftJson)
    This causes a conflict because you already have another newtonsoft json dll that Unity depends on in their packages.
    To resolve that conflict you got to get rid of one. Well the simple answer there is, get rid of the one that comes with the third party package and just use Unity's provided dll.
    When you delete the NewtonSoftJson that the third party package is shipping with, it will cause the assembly definition to fail compiling. Because it depends on it but can suddenly no longer find the dll that was referred to. So you need to fix that reference yourself by overriding it in the assembly definition file.

    So perform the following steps:
    1. Delete the Plugins/NewtonsoftJson folder
    2. Go to Plugins/Webview/Webview.asmdef
    3. Turn on Override References
    4. Add the Newtonsoft.Json.dll reference.
    5. Click on Apply at the bottom

    upload_2021-6-26_2-57-2.png

    upload_2021-6-26_2-50-25.png


    It would've been a lot easier if this third party made it a package for the Package Manager and have the com.unity.nuget.newtonsoft-json package as a dependency. That way they don't need to supply another dll for newtonsoft themselves. They can also host it on Git instead of on Google Drive.
     
    jacefalky and Mashimaro7 like this.
  9. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    Just tested it out in IL2CPP and it's still not building properly. It builds in mono, but I'm not sure the implications, maybe this will create issues down the road...

    Edit: Ah, right, I won't be able to build in 64 bit which is absolutely crucial.
     
    Last edited: Jun 27, 2021
  10. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    Ah yeah I didn't set the platform to Android or iOS. My bad.

    Now I see the next problem you are facing. That seems more of an issue with the package code itself though.
    Code (CSharp):
    1. In function `IOSWebViewWindow__CWebViewPlugin_Init_mE1E39EEE1F883789A40087032C4B19384DAB2281':
    2. undefined reference to `_CWebViewPlugin_Init'
    I actually found their problem... and the developer of this package seemed to have made a stupid mistake.
    They have an IOSWebviewWindow.cs under a Windows folder. It contains code with references to iOS Webview code. Ofcourse you're not going to find this in an Android build so the build throws an error.

    Take the following steps:
    go to Plugins/Webview/Scripts/Windows/IOSWebviewWindow.cs
    at the top of the file add #if UNITY_IOS
    at the end of the file add #endif

    This will make sure that the code is only compiled when the platform is iOS.
    Do the same for the AndroidWebviewWindow.cs
    #if UNITY_ANDROID at the top
    #endif at the bottom

    Then build again, it should solve your problem. I've been able to build it successfully but I haven't tested the build itself.
     
  11. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    That worked! I was able to build successfully in IL2CPP. Haven't extensively tested, but it seems to run just fine.

    Thank you very much! I contacted the dev a couple days ago and haven't received a reply yet, but I'll let him know if he replies, hopefully he'll fix it.
     
    MaskedMouse likes this.
  12. Celestasi

    Celestasi

    Joined:
    Jan 4, 2018
    Posts:
    4
    Hello,
    I did exactly as you have indicated and made a build in Android 64-bit. The build worked till the avatar was created. But it does not load into the app itself on the device.
    I added #if UNITY_ANDROID at the top of the file before
    using UnityEngine;
    and the #endif after the last bracket in the file. Is this correct? I use Playmaker for my work and do not know much about scripting.
    Please help. Would be much appreciated.
    Thanks.
     
  13. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    Since you’ve been able to build it, I’d assume you did it correct.

    for the rest I don’t know the package, I only shortly analyzed it to fix the build issues due to having multiple newtonsoft json dlls in the project.

    It’s a third party package so I’d say go to their setup guide / FaQ to see if you’ve set it up correctly.
    Since mashimaro was able to set it up, it should theoretically work.
     
  14. Celestasi

    Celestasi

    Joined:
    Jan 4, 2018
    Posts:
    4
    Hello,

    Thank you Sir for replying so promptly. I checked the third parties FAQ in toto, and it seems to me they have outsourced the entire project to an outside developer and don't have a clue as to Unity processes. I will do some more testing and check. the webview scene packaged by ReadyPlayer.Me works upto creation of the avatar on their website but gets stuck at Loading ... while trying to bring the character into Unity.
    I know that I am asking for too much but would be grateful if you could look into it whenever you are free or so inclined. That would mean a lot to me since I am working on a project and really need to include this avatar stuff into it.
    Thanks and Regards.
     
  15. Celestasi

    Celestasi

    Joined:
    Jan 4, 2018
    Posts:
    4
    Hello,

    The webview scene packaged by ReadyPlayer.Me works up to creation of the avatar on their website but gets stuck at Loading ... while trying to bring the character into Unity.
    I tried a 64-bit build in Unity 2030.3.11 and this was the outcome.
    Is it possible to explain any steps that you did to get it right? I have done whatever was explained by MaskedMouse but could not get the avatar into the app scene.
    Thanks
     
  16. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    I was unable to get players to load in, I just ended up making a few avatars with ready player me and putting them in. The plugin is honestly not designed that well haha.
     
  17. Celestasi

    Celestasi

    Joined:
    Jan 4, 2018
    Posts:
    4
    Hello MaskedMouse and Mashimaro7,
    Just an update. I got the package working by doing the following as advised by MaskedMouse and then some more:
    1. Delete the Plugins/NewtonsoftJson folder
    2. Go to Plugins/Webview/Webview.asmdef
    3. Turn on Override References
    4. Add the Newtonsoft.Json.dll reference.

    I then deleted the iOS folder under the Webview folder in Plugins and also deleted IOSWebviewWindow.cs.
    Then I added the four GLTF shaders to the Always Included Shaders list in Unity Project Settings and made a build.
    The app now works without a hitch in my Android phone.

    Thanks a lot MaskedMouse for your advise and for Mashimaro's efforts.
    Warm Regards to both
     
    MaskedMouse and Mashimaro7 like this.
  18. PrairieDogSeeksHeart

    PrairieDogSeeksHeart

    Joined:
    Oct 27, 2017
    Posts:
    5
    Just stumbled upon this solution, as I too was stumped with this error. Your solution worked perfectly. Thank you!
     
    LexaJsoft likes this.
  19. wechat_os_Qy0y2rPX9cdPy9mlcMZ-kwuAw

    wechat_os_Qy0y2rPX9cdPy9mlcMZ-kwuAw

    Joined:
    Nov 27, 2021
    Posts:
    1
    Thank you very much!
     
    Mashimaro7 likes this.