chromeview icon indicating copy to clipboard operation
chromeview copied to clipboard

java.lang.UnsatisfiedLinkError: Native method not found: org.chromium.content.app.LibraryLoader.nativeLibraryLoaded:([Ljava/lang/String;)I

Open jy1989 opened this issue 10 years ago • 10 comments

Hi

I already follow the Setting Up to setup my project

but it has some error when ChromeView.initialize(this); in my Application:

qq20140323133327

03-23 13:26:35.954: E/AndroidRuntime(20041): java.lang.UnsatisfiedLinkError: Native method not found: org.chromium.content.app.LibraryLoader.nativeLibraryLoaded:([Ljava/lang/String;)I 03-23 13:26:35.954: E/AndroidRuntime(20041): at org.chromium.content.app.LibraryLoader.nativeLibraryLoaded(Native Method) 03-23 13:26:35.954: E/AndroidRuntime(20041): at org.chromium.content.app.LibraryLoader.initializeAlreadyLocked(LibraryLoader.java:122) 03-23 13:26:35.954: E/AndroidRuntime(20041): at org.chromium.content.app.LibraryLoader.ensureInitialized(LibraryLoader.java:63) 03-23 13:26:35.954: E/AndroidRuntime(20041): at org.chromium.android_webview.AwBrowserProcess$1.run(AwBrowserProcess.java:50) 03-23 13:26:35.954: E/AndroidRuntime(20041): at org.chromium.base.ThreadUtils.runOnUiThreadBlocking(ThreadUtils.java:28) 03-23 13:26:35.954: E/AndroidRuntime(20041): at org.chromium.android_webview.AwBrowserProcess.start(AwBrowserProcess.java:46) 03-23 13:26:35.954: E/AndroidRuntime(20041): at us.costan.chrome.impl.ChromeInitializer.initialize(ChromeInitializer.java:49) 03-23 13:26:35.954: E/AndroidRuntime(20041): at us.costan.chrome.ChromeView.initialize(ChromeView.java:848) 03-23 13:26:35.954: E/AndroidRuntime(20041): at com.cjy.delaylink.MainApplication.onCreate(MainApplication.java:10) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4408) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.app.ActivityThread.access$1500(ActivityThread.java:145) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1266) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.os.Handler.dispatchMessage(Handler.java:102) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.os.Looper.loop(Looper.java:136) 03-23 13:26:35.954: E/AndroidRuntime(20041): at android.app.ActivityThread.main(ActivityThread.java:5081) 03-23 13:26:35.954: E/AndroidRuntime(20041): at java.lang.reflect.Method.invokeNative(Native Method) 03-23 13:26:35.954: E/AndroidRuntime(20041): at java.lang.reflect.Method.invoke(Method.java:515) 03-23 13:26:35.954: E/AndroidRuntime(20041): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781) 03-23 13:26:35.954: E/AndroidRuntime(20041): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 03-23 13:26:35.954: E/AndroidRuntime(20041): at dalvik.system.NativeStart.main(Native Method)

so how to solve that?

thank you

jy1989 avatar Mar 23 '14 05:03 jy1989

I'm experiencing the same issues when following the guide. Building with API 19 (4.4.2).. tried with API 17 (4.2.2) as well.

@pwnall Is there anything missing from the setup instructions?

shockdesign avatar Mar 28 '14 01:03 shockdesign

Same issue here, both on Android 4.x Emulator and Android 4.4. I added the .pak to my project's assets folder, and in the log I see this:

Trying to load lib /data/app-lib/.../libwebviewchromium.so 0x41a870c8

followed by

Added shared lib /data/app-lib/.../libwebviewchromium.so 0x41a870c8

So it looks like some native code has been loaded, but still cannot be found be ChromeView.

@pwnall Any news on this?

kashban avatar May 14 '14 13:05 kashban

I am seeing the same issue, has anyone found a resolution for this?

broschb avatar Jun 04 '14 05:06 broschb

I faced the same problem, is there any solution ?

hoang8f avatar Jun 20 '14 08:06 hoang8f

i also faced same problem ,any one who is help me ?

Error is !!!!

java.lang.reflect.InvocationTargetException

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515) android.app.ActivityThread.pauseGC(ActivityThread.java:5525)

android.app.ActivityThread.performLaunchActivity android.app.ActivityThread.handleLaunchActivity

Thanks in Advance!!!

pradeep2929 avatar Jul 05 '14 13:07 pradeep2929

I switched to using crosswalk(https://crosswalk-project.org/) this resolved my issues and was much easier to work with vs. building chromium myself.

broschb avatar Jul 09 '14 03:07 broschb

Hi,

Did anyone find a solution to this?

Thanks :)

syamavarma avatar Sep 22 '14 11:09 syamavarma

I gave up using chromeview and changed my App to a native framework with a single standard webview. Using ChromeView to fix issues with the standard webkit webview brought too many new hassles to the table.

kashban avatar Sep 22 '14 11:09 kashban

With standard webkit webview, the performance is poor when it comes to android versions before 4.4. I need an alternate implementation of webview which uses chromium or something else to make it fast irrespective of android API level.

syamavarma avatar Sep 22 '14 12:09 syamavarma

Did anyone find a solution to this?

jiangban avatar Apr 25 '17 12:04 jiangban