调用System.loadLibrary(“chromium_net”); java.lang.UnsatisfiedLinkError失败:未知失败

时间:2012-04-17 12:51:07

标签: android android-firmware

刚刚包含在我的代码中作为第一行加载不同的系统库:

public class MyWebTestActivity extends Activity {

static {
    System.loadLibrary("ui");
    System.loadLibrary("android");
    System.loadLibrary("chromium_net"); // - fails UnsatisfiedLinkError: unknown failure
}
...etc..

堆栈追踪:

04-17 14:04:23.121: W/dalvikvm(5041): Shared lib '/system/lib/libchromium_net.so' already opened by CL 0x0; can't open in 0x2bb4b9f0
04-17 14:04:23.121: W/dalvikvm(5041): Exception Ljava/lang/UnsatisfiedLinkError; thrown         while initializing Lmywebtest/MyWebTestActivity;
04-17 14:04:23.121: W/dalvikvm(5041): Class init failed in newInstance call     (Lmywebtest/MyWebTestActivity;)
04-17 14:04:23.121: D/AndroidRuntime(5041): Shutting down VM
04-17 14:04:23.121: W/dalvikvm(5041): threadid=1: thread exiting with uncaught exception (group=0x2b4d61f8)
04-17 14:04:23.121: E/AndroidRuntime(5041): FATAL EXCEPTION: main
04-17 14:04:23.121: E/AndroidRuntime(5041): java.lang.ExceptionInInitializerError
04-17 14:04:23.121: E/AndroidRuntime(5041):     at java.lang.Class.newInstanceImpl(Native Method)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at java.lang.Class.newInstance(Class.java:1319)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.os.Looper.loop(Looper.java:137)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at android.app.ActivityThread.main(ActivityThread.java:4424)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at java.lang.reflect.Method.invokeNative(Native Method)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at java.lang.reflect.Method.invoke(Method.java:511)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at dalvik.system.NativeStart.main(Native Method)
04-17 14:04:23.121: E/AndroidRuntime(5041): Caused by: java.lang.UnsatisfiedLinkError: unknown failure
04-17 14:04:23.121: E/AndroidRuntime(5041):     at java.lang.Runtime.load(Runtime.java:340)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at java.lang.System.load(System.java:521)
04-17 14:04:23.121: E/AndroidRuntime(5041):     at mytest.MyWebTestActivity.<clinit>(MyWebTestActivity.java:24)

问题:“CL已经打开共享库[名称]是什么意思”?如何解决?

P.S。我已经尝试过加载其他系统库(例如android - / system / lib / libandroid.so,.. audioioalsa,camera_client等),所有这些都加载没有问题。 我用Android 4.0.3运行root xperia手机。所有图书馆都出现在手机上。

0 个答案:

没有答案