Inexplicable UnsatisfiedLinkError on native library load

前端 未结 3 1945
-上瘾入骨i
-上瘾入骨i 2021-01-06 02:16

First and foremost, my application generally works. I have numerous clients on all four 32-bit CPU/ABIs, and they have no trouble running the app. The nativ

相关标签:
3条回答
  • 2021-01-06 02:59

    Uninstall and reinstall works, but you can lose users, unfortunatly. To solve this issue in my project im ussing solution from chromium, its not perfect but looks like it works:

    try {
            System.loadLibrary("YourLib");
        } catch (UnsatisfiedLinkError e) {
    
            System.load("YourLibPath");
        }
    
    0 讨论(0)
  • 2021-01-06 03:07

    A widespread problem affecting app updates was fixed in 4.3, but it appears the problem has not entirely gone away. Recent updates to the bug call out Xperia devices in particular. Uninstall + reinstall by the end user should work around the problem.

    0 讨论(0)
  • 2021-01-06 03:08

    I had put System.loadLibrary("libMyLibrary") which returned null. I changed it to System.loadLibrary("MyLibrary") and it worked.

    0 讨论(0)
提交回复
热议问题