Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load libbeluga.so and Main activity not found in APK - Android Runtime Error #181

Open
JoshikaNetha opened this issue Oct 3, 2024 · 0 comments

Comments

@JoshikaNetha
Copy link

I am encountering a runtime issue with my Android project using Qt and Firebase. Upon attempting to launch the app, it crashes with the following error:

`W Zygote : Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found.
E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.croyance.messenger/com.croyance.messenger.Main}: java.lang.ClassNotFoundException: Didn't find class "com.croyance.messenger.Main" on path: DexPathList...

The full logs can be found below. It seems that both the libbeluga.so native library and the Main activity are missing from the APK, which causes the application to fail at runtime. Additionally, there are several warnings related to Firebase initialization and some ANR (Application Not Responding) logs, which may be relevant.

`W Zygote : Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found.
I libc : SetHeapTaggingLevel: tag level set to 0
I yance.messenge: Late-enabling -Xcheck:jni
I yance.messenge: Unquickening 21 vdex files!
E yance.messenge: Unknown bits set in runtime_flags: 0x40000000
E RefClass: java.lang.reflect.InvocationTargetException
I OneTrace: Mark active for pid=25278? true
...
E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.croyance.messenger.Main" on path: DexPathList[[zip file "/data/app/~~AaqN-4a0auFr8HV_MJwQ3g==/com.croyance.messenger-itiNKy_Da7NGfGLvDCWqRw==/base.apk"],nativeLibraryDirectories=[/data/app/~~AaqN-4a0auFr8HV_MJwQ3g==/com.croyance.messenger-itiNKy_Da7NGfGLvDCWqRw==/lib/arm64...

I have correctly configured the AndroidManifest.xml file with the following activity declaration for Main:`

I have followed the setup guidelines for Android in the QtFirebase documentation, specifically as outlined in the setup guide

Environment:

Qt Version: 5.15.2
Firebase C++ SDK Version: 6.7.0
Android NDK Version: 21.3.6528147
Gradle Version: 5.6.4
Operating System: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant