I would use the AssetTrackerRK library instead.
The Adafruit_LIS3DH library is a fork that was made 6 years ago and hasn’t been updated since. Also even without the compile error, I’m pretty sure that example did not work properly. The AssetTracker library hasn’t been updated since 2017 and the hardware has been discontinued for years.