运行 NDK 时 , 删除了引用的动态库 , 然后 " Ctrl + Z " 恢复 , 运行就报如下错误 ;
2021-04-25 09:52:33.123 11165-11214/kim.hsl.webp E/libc: Access denied finding property "vendor.debug.egl.profiler"
2021-04-25 09:52:33.138 11165-11165/kim.hsl.webp E/AndroidRuntime: FATAL EXCEPTION: main
Process: kim.hsl.webp, PID: 11165
java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library "/data/app/kim.hsl.webp-tpXkgyRAYzcgZzgu1BkUdg==/lib/arm64/libwebp.so" >= file size: 0 >= 0
at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
at java.lang.System.loadLibrary(System.java:1669)
at kim.hsl.webp.MainActivity.<clinit>(MainActivity.kt:17)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2869)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
只要删除了 动态库的 CPU 架构目录 , " Ctrl + Z " 恢复后 , 其目录中的文件会被清零 ,
以后遇到这种情况 , 重新拷贝动态库到 Android Studio 代码中 ;