Closed SaitoAsahi closed 2 years ago
Hi Asahi,
Sorry for the late reply.
Which Unity version are you using? We have tested the master branch with Unity 2020.3.6f1 and require AR Foundation 4.2.0-pre.7 or newer, ARCore Extensions 1.24 or newer.
If you want to try the new APIs, the master branch is the way to go; if you want to do research, I personally recommend you using the old branch for more demos.
Hi Ruofeidu,
I am trying the master branch with Unity 2020.3.6f1 and AR Foundation 4.2.0-pre.7 and ARcore extention 1.24, I am getting the following error
ArgumentNullException: Value cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary2[TKey,TValue].FindEntry (TKey key) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Collections.Generic.Dictionary
2[TKey,TValue].ContainsKey (TKey key) (at <695d1cc93cca45069c528c15c9fdd749>:0)
DemoScenePreprocessBuild.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Assets/ARRealismDemos/Common/Scripts/Editor/DemoScenePreprocessBuild.cs:91)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.1[T] oneInterfaces, System.Action
1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action
1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:406)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
I also tried Unity 2020.3.11f1, got similar errors too
Hi Asahi,
What OS are you using?
My colleague tested on Mac after launch and I just tested on another Windows workstation (by changing manifest.json
as instructed in README.md
: both are working fantastically. Would you like do another clean clone and try again?
Cheers, Ruofei
Hi Ruofeidu,
Here is what I did on MAC (1) git clone the master branch (2) change the manifest.json file to add ARCore Extensions SDK. Then opened it in Unity Hub with Unity 2020.3.6f1 (3) in "build and run", switch to Android (4) Build and run, got the error as attached
The NullReferenceException is detailed below:
NullReferenceException: Object reference not set to an instance of an object
Google.XR.ARCoreExtensions.Internal.RuntimeConfig+<>c.1[T].RemoveAll (System.Predicate
1[T] match) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Hi Ruofeidu,
I'm having same error on windows 2020.3.12f1 unity version, It is possible to build , but when it comes to build and run it is getting same above error. btw, i can install build apk from manually and it works.
Regards, Raveen
Hi All,
I am also facing same issue while executing build and run method. Looking into same. Meanwhile, building only apk file works fine. Please try same.
Regards, Mihir
@mihirterna I'm having the same problem now.
Sorry for the late reply due to my recent moving vacations and federal holidays. I have personally tried both branches on Windows and Mac in Unity 2019.4 and 2020.3 respectively for the two branches and both builds work for me.
Honestly I never used build and run
for the past year, but used our own script to build and adb install to my phone... I will try it next time with build and run, if anyone figures out the problem, please feel free to follow up.
Let me know if you have any further error. Please use 2019.4.36f1 for legacy ARCore SDK and 2020.3 or above for the master branch.
I got the issue below and I can't fix it for a long time..! How can I fix this?
I got this android's sample app code(master's one) from this page and tried to build on my android device. I imported ARCore-Extension Package using Package Manager. Thank you!