AdMob在adView.loadAd(adRequest)上随机崩溃

时间:2016-12-06 23:24:11

标签: android firebase admob

我知道Google Group Mobile Ads section列出了此问题,但似乎Google忽略了这个问题。

所以我试图避免应用程序崩溃客户端没有运气。 adView.loadAd(adRequest);周围try catch区块无法正常工作。

堆栈跟踪始终相同:

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at android.app.ResourcesManager.appendLibAssetForMainAssetPath(ResourcesManager.java:859)
at android.webkit.WebViewDelegate.addWebViewAssetPath(WebViewDelegate.java:205)
at com.android.webview.chromium.WebViewDelegateFactory$ProxyDelegate.addWebViewAssetPath(WebViewDelegateFactory.java:194)
at com.android.webview.chromium.WebViewChromium.<init>(WebViewChromium.java:125)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.createWebView(WebViewChromiumFactoryProvider.java:524)
at android.webkit.WebView.ensureProviderCreated(WebView.java:2320)
at android.webkit.WebView.setOverScrollMode(WebView.java:2379)
at android.view.View.<init>(View.java:4001)
at android.view.View.<init>(View.java:4118)
at android.view.ViewGroup.<init>(ViewGroup.java:578)
at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
at android.webkit.WebView.<init>(WebView.java:627)
at android.webkit.WebView.<init>(WebView.java:572)
at android.webkit.WebView.<init>(WebView.java:555)
at android.webkit.WebView.<init>(WebView.java:542)
at android.webkit.WebView.<init>(WebView.java:532)
at com.google.android.gms.ads.internal.webview.m.<init>(:com.google.android.gms.DynamiteModulesA:244)
at com.google.android.gms.ads.internal.webview.k.a(:com.google.android.gms.DynamiteModulesA:1220)
at com.google.android.gms.ads.internal.g.a(:com.google.android.gms.DynamiteModulesA:88)
at com.google.android.gms.ads.internal.o.a(:com.google.android.gms.DynamiteModulesA:106)
at com.google.android.gms.ads.internal.j.run(:com.google.android.gms.DynamiteModulesA:216)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

0 个答案:

没有答案