Hexagon_SDK\4.5.0.3 Calculator c++ apk - prebuilt apk works, but recreated APK fails with library "libcdsprpc.so" not found
Join Date: 1 Apr 22
Posts: 1
Posted: Wed, 2022-07-20 16:42
Hi,
Using the Hexagon 4.5.0.3. and Android Studio bumblebee 2021.1.1 patch 3
While compiling, the NDK r-19c provided with the Hexagon SDK did not work - some problem with ARMABI not found. Had to install the same version from the cloud with this line in build.gradle -- ndkVersion "19.2.5345600"
That compiled ok.
Examining the .apk I see libc++_Shared.so and libcalculator. These appear to match what I see when examining the prebuilt apk.
However, when the compiled .apk is run, when loading ---- System.loadLibrary("calculator");
It cannot find -- libcdsprpc.so
--------- beginning of crash
07-20 23:09:25.475 15352 15352 E AndroidRuntime: FATAL EXCEPTION: main
07-20 23:09:25.475 15352 15352 E AndroidRuntime: Process: com.example.calculator, PID: 15352
07-20 23:09:25.475 15352 15352 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libcdsprpc.so" not found: needed by /data/app/~~28pbdPSyaSLbumvpBaUoDg==/com.example.calculator-lqXq0zn9rnBRX3flpJYgmg==/base.apk!/lib/arm64-v8a/libcalculator.so in namespace classloader-namespace
07-20 23:09:25.475 15352 15352 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
07-20 23:09:25.475 15352 15352 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:998)
07-20 23:09:25.475 15352 15352 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1656)
07-20 23:09:25.475 15352 15352 E AndroidRuntime: at com.example.calculator.MainActivity.<clinit>(MainActivity.java:19)
Would appreciate any help.
Thanks,
Tito.
Hello,
I was wondering if you have solved this problem. I met the exact same problem while running apk and couldn't solve it for now.Appreciate your help:(