gpt4 book ai didi

android - 未找到 android chromeview 的实现

转载 作者:行者123 更新时间:2023-11-29 17:54:03 26 4
gpt4 key购买 nike

我正在尝试运行 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 文件复制到 assets/
  • 在 README 中添加了一个 Application 类

我该如何解决这个问题?

最佳答案

问题是 chromeview 在 Android 4.4 上不工作。

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com