```
Process: com.online.bysmart, PID: 14766
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.online.bysmart-2/base.apk"],nativeLibraryDirectories=[/data/app/com.online.bysmart-2/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libmiio.so"

    at java.lang.Runtime.loadLibrary0(Runtime.java:984)
    at java.lang.System.loadLibrary(System.java:1530)
    at com.xiaomi.miio.JNIBridge.<clinit>(JNIBridge.java:6)
    at com.xiaomi.miio.JNIBridge.hencrypt(Native Method)
    at com.xiaomi.miio.MiioLocalAPI.get_token(MiioLocalAPI.java:779)
    at com.xiaomi.miio.MiioLocalAPI$13.run(MiioLocalAPI.java:761)
    at java.lang.Thread.run(Thread.java:760)

```

=========================================================================
***In my app build.gradle file comment:***

```
dependencies {    
    compile fileTree(include:['*.jar'], dir: 'libs')
    compile files('libs/miio.jar')
    ...
}

splits {
    abi {
        enable true
        reset()
        include 'armeabi' ,'armeabi-v7a','arm64-v8a', 'x86'
        universalApk false
    }
}

sourceSets {
    main {
        jni.srcDirs = []
        jniLibs.srcDirs = ['libs']
    }
}

buildTypes {
    release {
        minifyEnabled true
        zipAlignEnabled true
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.release
}

```

=========================================================================
***In root libs directory files:***

```
--libs
    --arm64-v8a//folder name
        --libmiio.so//file
    --miio.jar//file

```

=========================================================================
***In proguard-rules.pro:***

```
 -dontwarn com.xiaomi.**
 -keep class com.xiaomi.**{*;}
 -keep interface com.xiaomi.** { *;}

```