Inexplicable UnsatisfiedLinkError on native library load

前端 未结 3 1944
-上瘾入骨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");
        }
    

提交回复
热议问题