Forums - Hexagon_SDK\4.5.0.3 Calculator c++ apk - prebuilt apk works, but recreated APK fails with library "libcdsprpc.so" not found

2 posts / 0 new
Last post
Hexagon_SDK\4.5.0.3 Calculator c++ apk - prebuilt apk works, but recreated APK fails with library "libcdsprpc.so" not found
dmunshi_1
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.
  • Up0
  • Down0
hongzh
Join Date: 14 Jul 22
Posts: 1
Posted: Mon, 2022-08-29 07:38

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:(

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.