gree / gree/unity-webview

Package not found: com.android.chrome

Open
#538 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

sorry for many times to ask to you.
my program has two crashes:

first crash:
Package not found: com.android.chrome
android.webkit.WebViewDelegate.getPackageId(WebViewDelegate.java:164)
xU.a(SourceFile:16)
xq.run(SourceFile:14)
java.lang.Thread.run(Thread.java:764)

this crash may also be like this:
Package not found: com.google.android.webview
1 android.webkit.WebViewDelegate.getPackageId(WebViewDelegate.java:191)
2 r6.a(PG:5)
3 G5.run(PG:9)
4 java.lang.Thread.run(Thread.java:919)

it may also be like this:
Package not found: com.huawei.webview
1 android.webkit.WebViewDelegate.getPackageId(WebViewDelegate.java:191)
2 nc.a(PG:169)
3 my.a(PG:9226)
4 mA.run(PG:202)
5 java.lang.Thread.run(Thread.java:929)

this is the first crash.

second crash:
dlopen failed: "/system/app/Chrome/Chrome.apk!/lib/armeabi-v7a/libmonochrome.so" is 32-bit instead of 64-bit
1 android.util.AndroidRuntimeException:java.lang.reflect.InvocationTargetException
2 android.webkit.WebViewFactory.getProvider(WebViewFactory.java:230)
3 ......
4 Caused by:
5 java.lang.UnsatisfiedLinkError:dlopen failed: "/system/app/Chrome/Chrome.apk!/lib/armeabi-v7a/libmonochrome.so" is 32-bit instead of 64-bit
6 java.lang.Runtime.loadLibrary0(Runtime.java:1016)
7 java.lang.System.loadLibrary(System.java:1657)
8 org.chromium.base.library_loader.LibraryLoader.c(SourceFile:65)
9 org.chromium.base.library_loader.LibraryLoader.b(SourceFile:34)
10 com.android.webview.chromium.WebViewChromiumFactoryProvider.a(SourceFile:101)
11 com.android.webview.chromium.WebViewChromiumFactoryProvider.(SourceFile:24)
12 com.android.webview.chromium.WebViewChromiumFactoryProviderForO.(SourceFile:2)
13 com.android.webview.chromium.WebViewChromiumFactoryProviderForO.create(SourceFile:1)
14 java.lang.reflect.Method.invoke(Native Method)
15 android.webkit.WebViewFactory.getProvider(WebViewFactory.java:225)
16 android.webkit.WebView.getFactory(WebView.java:2467)
17 android.webkit.WebView.ensureProviderCreated(WebView.java:2462)
18 android.webkit.WebView.setOverScrollMode(WebView.java:2527)
19 android.view.View.(View.java:4830)
20 android.view.View.(View.java:5016)
21 android.view.ViewGroup.(ViewGroup.java:597)
22 android.widget.AbsoluteLayout.(AbsoluteLayout.java:55)
23 android.webkit.WebView.(WebView.java:636)
24 android.webkit.WebView.(WebView.java:581)
25 android.webkit.WebView.(WebView.java:564)
26 android.webkit.WebView.(WebView.java:551)
27 android.webkit.WebView.(WebView.java:541)
28 net.gree.unitywebview.CWebViewPlugin$2.run(Unknown Source:26)
29 android.os.Handler.handleCallback(Handler.java:789)
30 android.os.Handler.dispatchMessage(Handler.java:98)
31 android.os.Looper.loop(Looper.java:164)
32 android.app.ActivityThread.main(ActivityThread.java:6944)
33 java.lang.reflect.Method.invoke(Native Method)
34 com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
35 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Is there anything my mistake in my source code?
Best Regards.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the Android WebView initialization path in net.gree.unitywebview.CWebViewPlugin$2 and compare it with the reported WebViewFactory and WebViewDelegate traces. Reproduce the listed Chrome, Google WebView, and Huawei WebView package and ABI conditions; done means isolating whether the plugin or the device WebView setup causes the crashes and documenting the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, unity
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.