我已经从 github 下载了凹凸演示,但是当我运行它时,它一直在运行,错误日志为
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): FATAL EXCEPTION: main
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): java.lang.UnsatisfiedLinkError: Library
android-api not found 11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
java.lang.Runtime.loadLibrary(Runtime.java:461)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
java.lang.System.loadLibrary(System.java:557)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at com.bump.api.BumpAPI.<init>
(BumpAPI.java:122)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
java.lang.Class.newInstanceImpl(Native Method)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
java.lang.Class.newInstance(Class.java:1429)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
android.app.ActivityThread.access$3300(ActivityThread.java:125)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
android.os.Looper.loop(Looper.java:123)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
android.app.ActivityThread.main(ActivityThread.java:4627)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
java.lang.reflect.Method.invokeNative(Native Method)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
java.lang.reflect.Method.invoke(Method.java:521)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-16 12:33:01.632: ERROR/AndroidRuntime(4298): at
dalvik.system.NativeStart.main(Native Method)
当我使用这段代码在 onCreate 中加载它时
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
//System.loadLibrary("mysharedlibrary");
//crashing on this line
System.loadLibrary("libgifflen.so");
} catch (UnsatisfiedLinkError use) {
Log.e("JNI", "WARNING: Could not load libmysharedlibrary.so");
System.out.println("warning "+use.getMessage());
}
//.......some other code
}
我想我错过了一些非常字符串的东西,但我找不到任何这样的东西或无法为此得到一些东西