79342918

Date: 2025-01-09 14:14:53
Score: 1.5
Natty:
Report link

I have encountered the same issue. When I was running my code I was receiving the error: init() err UHFOpenAndConnect result:-1 in the console.

The peculiar thing was that I tested the code on two different devices: one was a Chainway C72 running Android 11 and the other was a Chainway C72 running Android 13.

On the device running Android 11 the code worked, while on the Android 13 it did not work at all. Every time I opened the app I received the error.

I used their demo app available on their website and it was working: https://www.chainway.net/mobile/support/Info/10 Under the SDK & More section -> UHF for Android Studio -> an .rar archive will be downloaded and with this demo app everything worked on Android 13.

After some investigation I found out that my old code that was not working was using the "DeviceAPI_ver20230301_release.aar" in the /libs folder and the demo app from their website was using "DeviceAPI_ver20241125_release.aar".

So I removed all my file from the /libs folder and replaced them with the new files from the demo app and everything worked.

I hope this is helpful.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Razvan Stefan