Controller losing tracking when it goes to sleep

Where am I supposed to run gradlew --status? It's not recognized in a basic terminal.

Ok, so downgrading the Unity Sample Project fails to build with the above error. So I tried following the docs step by step from Configure Project Settings | MagicLeap Developer Documentation in a fresh project. That one fails to build with the following familiar error:

Building Library\Bee\artifacts\Android\hu7xe\ki9kj7rgnste.o failed with output:
PLEASE submit a bug report to Issues · android/ndk · GitHub and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: "C:/Program Files/Unity/Hub/Editor/2022.3.22f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++" -mtune=skylake -m64 -msse4.2 -mfpmath=sse -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -faddrsig -mllvm -hoist-common-insts=1 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fomit-frame-pointer -std=c++11 -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -msse2 -mcx16 -fexceptions -fno-rtti -g -Os -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DHAVE_BDWGC_GC -DNDEBUG -I.

similar to Build failure with update . In that case, in my primary project, the problem was fixed after deleting NDK folders outside my project. But now this fresh clean project using the same editor version on the same machine is failing to build. This is just exactly me following the directions on the docs. And I'm hesitant to make any environmental changes because right now my main project is actually building successfully, just with a messed up controller. There must be a way to get a fully working project in Unity 2022.3 like the instructions say.