Android NDK UnsatisfiedLinkError: “dlopen failed: empty/missing DT_HASH”

前端 未结 7 2313
迷失自我
迷失自我 2021-02-08 06:50

I am tracking down crashes with our Android application (which uses the NDK to load a C++ library) using a crash reporting service. A small number of users are experiencing the

7条回答
  •  甜味超标
    2021-02-08 06:53

    I have faced this problem while using Android Cmake and I have set -DANDROID_PLATFORM=23 As per changelog The GNU hash style becomes available from API 23 and because of ANDROID_PLATFORM was set to 23 the flag --hash-style=gnu was set automatically.

    I have fixed this just by lowering -DANDROID_PLATFORM=21and then the flag was set to the flag --hash-style=both

提交回复
热议问题