AltBeacon / android-beacon-library

Allows Android apps to interact with BLE beacons
Apache License 2.0
2.83k stars 834 forks source link

Unresolved reference: getRegionViewModel #1118

Closed niravtopsy closed 1 year ago

niravtopsy commented 1 year ago

All libs and project are setup properly but when i tried to run the project, I am getting following error.

    Unresolved reference: getRegionViewModel

On line number :

    beaconManager.getRegionViewModel(region).regionState.observe(this@MainActivity, monitoringObserver)
    beaconManager.startMonitoring(region)

Please let me know how to fix it.

davidgyoung commented 1 year ago

Troubleshooting specific build enviornment issues can be tricky. The library builds successfully on CircleCI servers using this configuration: https://github.com/AltBeacon/android-beacon-library/blob/master/.circleci/config.yml

You may wish to compare you build environment with the CircleCI setup and try to match what they have as closely as possible to see if you can get it to work.