connectivity-samples icon indicating copy to clipboard operation
connectivity-samples copied to clipboard

UWB Sample Crashes App During Ranging

Open AtifAmin117 opened this issue 2 years ago • 1 comments

When attempting to initiate ranging between two devices using the UWB sample, the application crashes when receiving the signal from one of the devices. The error message received is:

java.lang.IllegalArgumentException: Illegal API call was received.

Steps to Reproduce:

Launch the UWB sample application. Initiate ranging between two UWB devices. Observe the application crash when receiving the ranging signal on one of the devices.

Expected Behavior:

The UWB sample application should successfully complete ranging between the two devices without crashing.

Environment:

Android version: Android 13 Device model:Samsung Galaxy S21 plus, Samsung Galaxy S22 UWB SDK version: implementation 'androidx.core.uwb:uwb:1.0.0-alpha05'

Screenshots/Logs:

Screenshot at Oct 26 17-39-49

AtifAmin117 avatar Oct 27 '23 09:10 AtifAmin117

Hi,

upgrading to latest jetpack uwb library solved the issue for me:

implementation 'androidx.core.uwb:uwb:1.0.0-alpha08'

Plinzen avatar Mar 19 '24 12:03 Plinzen