Device ID Error

It looks like you have trying to get device id from android 10. getDeviceId() is deprecated is android 10.
https://developer.android.com/about/versions/10/privacy/changes