dmbfm / unity-ar-gps-location-mapbox-route-sample

Example project showcasing the Navigation feature of the AR+GPS location unity asset, alongside the Mapbox SDK.
MIT License
39 stars 19 forks source link

build problem #3

Open Wingein opened 2 years ago

Wingein commented 2 years ago

When I start to build the scene, it comes out with such problems:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <547e117ea7634fa8b9f468a44db1a8a1>:0 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <547e117ea7634fa8b9f468a44db1a8a1>:0 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

How can I fix it? I am a newer to U3D,if you could help me, I will be very grateful!

dmbfm commented 2 years ago

There are no other error messages or warnings?

Wingein commented 2 years ago

You are right! It does!!! BuildFailedException: GoogleARCore detected. Google's "ARCore SDK for Unity" and Unity's "ARCore XR Plugin" package cannot be used together. If you have already removed GoogleARCore, you may need to restart theEditor.`` It seems I import unnecessary packages. I am so silly!

dmbfm commented 2 years ago

Well, there you are. You can't use "ARCore SDK for Unity". You must use the "ARCore XR Plugin" which can be installed from the package manager window. For more info: