java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader

前端 未结 17 1830
耶瑟儿~
耶瑟儿~ 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条回答
  •  失恋的感觉
    2020-11-29 22:55

    This is worked for me

    If your having .so file in armeabi then mention inside ndk that folder alone.

    defaultConfig {
            applicationId "com.xxx.yyy"
            minSdkVersion 17
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
            renderscriptTargetApi 26
            renderscriptSupportModeEnabled true
            ndk {
                abiFilters "armeabi"
            }
        }
    

    and then use this

    android.useDeprecatedNdk=true;
    

    in gradle.properties file

提交回复
热议问题