ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.63k stars 2.23k forks source link

WebViewPackageMissing crash on startup #6877

Closed mikehardy closed 3 years ago

mikehardy commented 4 years ago
Reproduction Steps
  1. This one just keeps new ways to go down
Expected Result
Actual Result
java.lang.RuntimeException: 
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6132)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.swift.sandhook.SandHook.callOriginMethod (SandHook.java:185)
  at com.swift.sandhook.SandHook.callOriginMethod (SandHook.java:163)
  at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge (HookStubManager.java:304)
  at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs32.stub_hook_0 (MethodHookerStubs32.java:198)
  at android.app.ActivityThread.access$1200 (ActivityThread.java:213)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:215)
  at android.app.ActivityThread.main (ActivityThread.java:6939)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:870)
Caused by: android.util.AndroidRuntimeException: 
  at android.webkit.WebViewFactory.getProviderClass (WebViewFactory.java:471)
  at android.webkit.WebViewFactory.getProvider (WebViewFactory.java:251)
  at android.webkit.CookieManager.getInstance (CookieManager.java:40)
  at android.webkit.CookieManager.setAcceptFileSchemeCookies (CookieManager.java:267)
  at com.ichi2.anki.AnkiDroidApp.onCreate (AnkiDroidApp.java:271)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1176)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6127)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.swift.sandhook.SandHook.callOriginMethod (SandHook.java:185)
  at com.swift.sandhook.SandHook.callOriginMethod (SandHook.java:163)
  at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge (HookStubManager.java:304)
  at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs32.stub_hook_0 (MethodHookerStubs32.java:198)
  at android.app.ActivityThread.access$1200 (ActivityThread.java:213)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:215)
  at android.app.ActivityThread.main (ActivityThread.java:6939)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:870)
Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: 
  at android.webkit.WebViewFactory.getWebViewContextAndSetProvider (WebViewFactory.java:376)
  at android.webkit.WebViewFactory.getProviderClass (WebViewFactory.java:439)
  at android.webkit.WebViewFactory.getProvider (WebViewFactory.java:251)
  at android.webkit.CookieManager.getInstance (CookieManager.java:40)
  at android.webkit.CookieManager.setAcceptFileSchemeCookies (CookieManager.java:267)
  at com.ichi2.anki.AnkiDroidApp.onCreate (AnkiDroidApp.java:271)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1176)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6127)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.swift.sandhook.SandHook.callOriginMethod (SandHook.java:185)
  at com.swift.sandhook.SandHook.callOriginMethod (SandHook.java:163)
  at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge (HookStubManager.java:304)
  at com.swift.sandhook.xposedcompat.hookstub.MethodHookerStubs32.stub_hook_0 (MethodHookerStubs32.java:198)
  at android.app.ActivityThread.access$1200 (ActivityThread.java:213)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:215)
  at android.app.ActivityThread.main (ActivityThread.java:6939)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:870)
Debug info

Refer to the support page if you are unsure where to get the "debug info".

Research

Enter an [x] character to confirm the points below:

david-allison commented 4 years ago

5794

github-actions[bot] commented 4 years ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] commented 3 years ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

david-allison commented 3 years ago

Duplicate of #5794

Fixed in #7378