RuntimeException when creating ads loader on Android > 5.0

237 views
Skip to first unread message

Adrian Rodriguez

unread,
Jun 19, 2015, 10:41:31 AM6/19/15
to ima...@googlegroups.com
Hi,

Our crash reports suggest there is an issue with the IMA SDK on all versions of Lollipop in some devices. Seems to be related with the webview. Most common device with the crash was the SM-G900F but also phones from other manufacturers (Asus, HTC) appeared in the crash logs, all with at least 5.0

Here is an example stack trace:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.stacktrace/com.example.stacktrace.MobileActivity}: android.util.AndroidRuntimeException: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2790) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2855) at android.app.ActivityThread.access$900(ActivityThread.java:181) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6117) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: android.util.AndroidRuntimeException: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:161) at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:101) at android.webkit.WebView.getFactory(WebView.java:2193) at android.webkit.WebView.ensureProviderCreated(WebView.java:2188) at android.webkit.WebView.setOverScrollMode(WebView.java:2247) at android.view.View.<init>(View.java:3824) at android.view.View.<init>(View.java:3935) at android.view.ViewGroup.<init>(ViewGroup.java:507) at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55) at android.webkit.WebView.<init>(WebView.java:547) at android.webkit.WebView.<init>(WebView.java:492) at android.webkit.WebView.<init>(WebView.java:475) at android.webkit.WebView.<init>(WebView.java:462) at android.webkit.WebView.<init>(WebView.java:452) at com.google.ads.interactivemedia.v3.impl.w.<init>(IMASDK:37) at com.google.ads.interactivemedia.v3.impl.v.<init>(IMASDK:221) at com.google.ads.interactivemedia.v3.impl.g.<init>(IMASDK:136) at com.google.ads.interactivemedia.v3.impl.g.<init>(IMASDK:130) at com.google.ads.interactivemedia.v3.api.ImaSdkFactory.createAdsLoader(IMASDK:52) at com.example.core.util.AdUtil.createAdsLoader(AdUtil.java:30) at com.example.core.App.createAdsLoader(App.java:150)
at com.example.core.App.initAdsLoader(App.java:139)
at com.example.mobile.MobileActivity.onStart(MobileActivity.java:222)
	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1234)
	at android.app.Activity.performStart(Activity.java:6412)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2753)
	... 10 more
Caused by: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview
	at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:158)
	at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:133)
	... 35 more

Adrian Rodriguez

unread,
Jun 19, 2015, 10:42:33 AM6/19/15
to ima...@googlegroups.com
Forgot to mention we are using v3b11.4 of the IMA SDK.

Elton Kent

unread,
Jun 19, 2015, 3:49:16 PM6/19/15
to ima...@googlegroups.com
Hi Adrian,
Thanks for reporting this. This appears to be a known bug that's related to Android's WebView update for Lollipop. So unfortunately, there's nothing we can do to help you at this time.

Best,
Elton
Reply all
Reply to author
Forward
0 new messages