android lib findLibrary returned null error code solution

When doing vin code recognition, it kept showing that the so library could not be found and findLibrary returned null. After looking for a long time, it turned out that it was actually because the so file was not loaded successfully and the library file could not be found. Therefore, directly copying so to lib still cannot find the library file.

Solution: Manually modify the gradle file

//    解决方案:手动修改gradle文件
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }

that's all. . . . . .

Guess you like

Origin blog.csdn.net/qq_19714505/article/details/83542429