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

前端 未结 7 2311
迷失自我
迷失自我 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:59

    Although out of this question, I met this problem in Android Studio import third-party so file. Finally I found this is because Gradle automatically stripped the product 'so' file, so disabling this option it works.

    android {
    	........
        packagingOptions{
            doNotStrip "*/armeabi-v7a/*.so"
        }
       .......
    }

提交回复
热议问题