java.lang.NoSuchMethodError in net.gree.unitywebview.CWebViewPlugin$2.onGlobalLayout
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
java.lang.NoSuchMethodError
in net.gree.unitywebview.CWebViewPlugin$2.onGlobalLayout
My app has gotten a crash report with the following stack trace:
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 5.5.0p2
Device model : PANTECH ADR8995
Device fingerprint: verizon/ADR8995/ADR8995:2.3.3/GRI40/ADR8995_2013_03_13:user/release-keys
Caused by: java.lang.NoSuchMethodError: android.view.Display.getSize
at net.gree.unitywebview.CWebViewPlugin$2.onGlobalLayout(CWebViewPlugin.java:196)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:549)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1195)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1867)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
Device:
Device
Apache (ADR8995)
Manufacturer Pantech Android version Android 2.3.3 - 2.3.7 RAM (MB) 512 Screen size 800 × 480 Screen density (dpi) 240 OpenGL ES version 2.0 Native platform armeabi-v7a CPU make Qualcomm CPU model MSM8655
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at CWebViewPlugin.java line 196 and inspect the onGlobalLayout callback against the reported Android 2.3.3 stack trace, focusing on the failing android.view.Display.getSize call. Done means the callback no longer raises NoSuchMethodError on the affected device or Android version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100