google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

Can't build #769

Closed sergiosolorzano closed 3 years ago

sergiosolorzano commented 3 years ago

SPECIFIC ISSUE ENCOUNTERED

Can't build

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

  1. clone project https://github.com/googlesamples/arcore-depth-lab
    1. import asset https://github.com/google-ar/arcore-unity-sdk/releases/tag/v1.21.0 into Unity
    2. download android-ndk-r16b and reference it in edit -preferences-external tools-ndk
    3. download gradle-5.6.4 and reference it in edit -preferences-external tools-gradle

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS

error at build and run: Building "AR Required" app. Use 'Edit > Project Settings > ARCore' to adjust ARCore SDK for Unity settings. See https://developers.google.com/ar/develop/unity/enable-arcore for more information. UnityEngine.Debug:LogFormat(String, Object[]) GoogleARCoreInternal.RequiredOptionalPreprocessBuild:OnPreprocessBuild(BuildTarget, String) (at Assets/GoogleARCore/SDK/Scripts/Editor/RequiredOptionalPreprocessBuild.cs:35) GoogleARCoreInternal.PreprocessBuildBase:OnPreprocessBuild(BuildReport) (at Assets/GoogleARCore/SDK/Scripts/Editor/PreprocessBuildBase.cs:52) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

sergiosolorzano commented 3 years ago

In case it helps anyone, got it to work with Unity: Unity 2020.2.0.b13.3614 ARCore SDK for Unity: 1.21.0 Fixed by install HLAPI and xr legacy package from package manager - credit to @EyezLee https://github.com/google-ar/arcore-unity-sdk/issues/758