Community

  • Sometimes I get NameNotFoundException in my Android app. posted

    Hi guys,

    Sometimes I get the NameNotFoundException and I don't know why. It is caused when AppnextAPI.initWeb() method is called. But I don't call this method directly. I just create an AppnextAPI instance and call loadAds()
    Has anyone faced this problem?

    Here is the track stack.

    Fatal Exception: android.util.AndroidRuntimeException: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview
    at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:176)
    at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:116)
    at android.webkit.WebView.getFactory(WebView.java:2198)
    at android.webkit.WebView.ensureProviderCreated(WebView.java:2193)
    at android.webkit.WebView.setOverScrollMode(WebView.java:2252)
    at android.view.View.(View.java)
    at android.view.View.(View.java)
    at android.view.ViewGroup.(ViewGroup.java)
    at android.widget.AbsoluteLayout.(AbsoluteLayout.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at com.appnext.appnextsdk.API.AppnextAPI.initWeb(AppnextAPI.java:146)
    at com.appnext.appnextsdk.API.AppnextAPI.access$13(AppnextAPI.java:145)
    at com.appnext.appnextsdk.API.AppnextAPI$4.run(AppnextAPI.java:121)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5253)
    at java.lang.reflect.Method.invoke(Method.java)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    Caused by android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview
    at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114)
    at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:148)
    at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:116)
    at android.webkit.WebView.getFactory(WebView.java:2198)
    at android.webkit.WebView.ensureProviderCreated(WebView.java:2193)
    at android.webkit.WebView.setOverScrollMode(WebView.java:2252)
    at android.view.View.(View.java)
    at android.view.View.(View.java)
    at android.view.ViewGroup.(ViewGroup.java)
    at android.widget.AbsoluteLayout.(AbsoluteLayout.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at android.webkit.WebView.(WebView.java)
    at com.appnext.appnextsdk.API.AppnextAPI.initWeb(AppnextAPI.java:146)
    at com.appnext.appnextsdk.API.AppnextAPI.access$13(AppnextAPI.java:145)
    at com.appnext.appnextsdk.API.AppnextAPI$4.run(AppnextAPI.java:121)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5253)
    at java.lang.reflect.Method.invoke(Method.java)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    Reply
  • @dpelluzi Which devices and OS version cause this?

    Director of Partnerships & Community, Appnext
    | m: +972-52-3320008 | e: jonathan@appnext.com | Skype: yoni_raveh

  • @Appnext---Jonathan According to my Crashlytics report these devices are experiencing that exception:
    Motorola XT1033, XT1069, XT1032
    Samsung SM G531H
    Asus Zenfone 5
    Most of them running Android 5.0.2 and others 5.1 and 5.0

  • I found this issue https://code.google.com/p/chromium/issues/detail?id=506369
    that can explain why that exception occurs.

  • @dpelluzi A fixed version had been uploaded. Feel free to download and use it.
    Thanks for your help and apologies for the error.

    Director of Partnerships & Community, Appnext
    | m: +972-52-3320008 | e: jonathan@appnext.com | Skype: yoni_raveh

  • Thank you very much.

    Reply
Loading ...