java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader

前端 未结 17 1845
耶瑟儿~
耶瑟儿~ 2020-11-29 22:21

Is there someone who had experience with this error?

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/data/app/org.swig         


        
17条回答
  •  猫巷女王i
    2020-11-29 22:37

    Yet another crash cause and possible solution is described in this article: https://medium.com/keepsafe-engineering/the-perils-of-loading-native-libraries-on-android-befa49dce2db

    Briefly:
    in build.gradle

    dependencies {
        implementation 'com.getkeepsafe.relinker:relinker:1.2.3'
    }
    

    in code

    static {
        try {
            System.loadLibrary("");
        } catch (UnsatisfiedLinkError e) {
            ReLinker.loadLibrary(context, "");
        }
    }
    

提交回复
热议问题