umer0586 / SensorServer

Android app which let you stream various phone's sensors to websocket clients
GNU General Public License v3.0
254 stars 29 forks source link

App crash on opening "Settings" #57

Open GustavBroend opened 3 months ago

GustavBroend commented 3 months ago

Hi. Cool app! I managed to open a websocket and stream GPS and Acellerometer data. However, when i try to access the settings to change my sampling rate, the app crashes. I'm currently on Android 11, and I'm using the newest release from the repo: https://github.com/umer0586/SensorServer/releases/tag/v5.3.0

Is there a workaround I can use to set the sample rate? Best regards, Gustav

umer0586 commented 3 months ago

Hi,

I reviewed the crash report you sent via email. The main cause of the app crash is:

java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

The reason for this error is still unknown. Only a few Android devices have reported this issue. It might be related to ProGuard rules affecting the release build, but I am not certain. Have you tested the app on other devices?

GustavBroend commented 3 months ago

Hi

Thanks for the quick response. I haven't tried any other devices - I might try and install it on my old phone. Otherwise, should i try to update my Android version? What version do you use? Is there any way for me to play around with the ProGuard rules without having to compile the APK myself?

Best regards, Gustav

umer0586 commented 3 months ago

You should definitely check the app on your older phone. The app should work just fine on Android 5.0 or later. By the way, ProGuard rules are only used during the compilation process to shrink and obfuscate code.

I can tell you I've personally tested the app on a variety of Android versions, including 7, 10, 11, 12, and 13 without such issue. So, there's a good chance it'll work smoothly on your old device as well.