Can't load library Android 13
Asked Answered
B

1

6

I have been facing an error in my android app since I upgraded the target SDK to 33 and I can't find anything about this specific error. The exception is: “E/FBI: Can’t load library: dlopen failed: library “libmagtsync.so” not found”.

Here's the scenario:

When I take a picture the image is not loaded correctly, nothing happens on screen, it's like the app doesn't process the picture. I have added some logs to try tracking where the exception is thrown and I think that it occurs on one of the methods 'Files.readAllBytes()' or 'BitmapFactory.decodeByteArray()', because the log stops showing between the result from the intent and the rest of the code, where is those methods. The strange thing is: I have multiple ImageButtons in my app and they all pass through the exact same code. Only one returns me this error. And it doesn't happen to everyone and does not happen every time they try to use that button. Can someone please help? What informations do

Batsman answered 6/7, 2023 at 17:58 Comment(2)
Hi, were you able to solve this? I'm facing the same issue since I updated to API 33Middleweight
I'm facing the same issue since I updated compileSdkVersion to 34 but no crash in appOfficial
V
1

I had the same error messages, and I managed to stop them.

Probably the precise cause of yours is different, but I hope this will help you:

My error messages disappeared when I enabled notifications from my app (after adding <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> to AndroidManifest.xml).

In my case, there used to be more messages around libmagtsync errors, such as

NotificationService   system_server    E  Suppressing toast from package XXXX by user request.
...
libMEOW               XXXX             D  meow reload base cfg path: na
libMEOW               XXXX             D  meow reload overlay cfg path: na
QT                    XXXX             W  qt_process_init() called
QT                    XXXX             E  [QT]file does not exist
QT                    XXXX             W  Support!!
QT                    XXXX             E  [QT]file does not exist

and all of them disappeared after enabling notifications.

So maybe you can solve it by adding some permissions.

Virginium answered 20/7 at 4:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.