System.loadLibrary() error

前端 未结 5 1225
你的背包
你的背包 2021-01-12 14:10

I successfully cross-compiled a c++ library with the android ndk-Standalone toolchain then, i created a new android application project into Eclipse and when i put mylib.so

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 14:23

    try {
           System.load("/data/data//lib/libsample-jni.so");
        } catch (UnsatisfiedLinkError e) {
           System.loadLibrary(""); //remove lib and .so from name
    }
    

    this will help you, Pls. check.

提交回复
热议问题