我正在尝试运行chromeview,当我调用ChromeView.initialize时会抛出UnsatsifiedLinkError异常。

12-31 16:16:28.050: D/dalvikvm(4910): Late-enabling CheckJNI
12-31 16:16:28.155: I/LibraryLoader(4910): loading: webviewchromium
12-31 16:16:28.155: D/dalvikvm(4910): Trying to load lib /data/app-lib/com.example.chromeviewtest-1/libwebviewchromium.so 0x41c443c0
12-31 16:16:28.155: D/dalvikvm(4910): Added shared lib /data/app-lib/com.example.chromeviewtest-1/libwebviewchromium.so 0x41c443c0
12-31 16:16:28.155: I/LibraryLoader(4910): loaded: webviewchromium
12-31 16:16:28.155: W/dalvikvm(4910): No implementation found for native Lorg/chromium/content/app/LibraryLoader;.nativeLibraryLoaded:([Ljava/lang/String;)I
12-31 16:16:28.155: D/AndroidRuntime(4910): Shutting down VM
12-31 16:16:28.155: W/dalvikvm(4910): threadid=1: thread exiting with uncaught exception (group=0x41995c50)
12-31 16:16:28.160: E/AndroidRuntime(4910): FATAL EXCEPTION: main
12-31 16:16:28.160: E/AndroidRuntime(4910): Process: com.example.chromeviewtest, PID: 4910
12-31 16:16:28.160: E/AndroidRuntime(4910): java.lang.UnsatisfiedLinkError: Native method not found: org.chromium.content.app.LibraryLoader.nativeLibraryLoaded:([Ljava/lang/String;)I
12-31 16:16:28.160: E/AndroidRuntime(4910):     at org.chromium.content.app.LibraryLoader.nativeLibraryLoaded(Native Method)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at org.chromium.content.app.LibraryLoader.initializeAlreadyLocked(LibraryLoader.java:122)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at org.chromium.content.app.LibraryLoader.ensureInitialized(LibraryLoader.java:63)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at org.chromium.android_webview.AwBrowserProcess$1.run(AwBrowserProcess.java:50)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:28)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at org.chromium.android_webview.AwBrowserProcess.start(AwBrowserProcess.java:46)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at us.costan.chrome.impl.ChromeInitializer.initialize(ChromeInitializer.java:49)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at us.costan.chrome.ChromeView.initialize(ChromeView.java:851)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at com.example.chromeviewtest.MyApplication.onCreate(MyApplication.java:10)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
12-31 16:16:28.160: E/AndroidRuntime(4910):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4396)


这些是我执行的步骤:


将chromeview添加为Eclipse项目
创建了一个新的android应用chromeviewtest
将chromeview添加为库
将pak文件复制到资产/
在自述文件中添加了Application类


我怎样才能解决这个问题?

最佳答案

问题在于chromeview无法在Android 4.4上运行。

关于android - 找不到与android chromeview的实现,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20858908/

10-09 19:48