Skip to content

PlatformException(error, android.content.pm.PackageManager$NameNotFoundException #2

@andersonmendesdev

Description

@andersonmendesdev

I caught this error in one of my usage logs on a production device.

fk_user_agent.dart in FkUserAgent.init at line 18 within fk_user_agent
Called from: <asynchronous suspension>
fk_user_agent.dart in FkUserAgent.getPropertyAsync at line 45 within fk_user_agent
Called from: <asynchronous suspension>

PlatformException: PlatformException(error, android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview, null, android.util.AndroidRuntimeException: android.content.pm.PackageManager$NameNotFoundException: com.google.android.webview at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:174) at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:109) at android.webkit.WebSettings.getDefaultUserAgent(WebSettings.java:1229) at f.b.a.a.d(FkUserAgentPlugin.java:2) at f.b.a.a.b(FkUserAgentPlugin.java:22) at f.b.a.a.onMethodCall(FkUserAgentPlugin.java:2) at f.a.c.a.i$a.a(MethodChannel.java:2) at io.flutter.embedding.engine.e.b.d(DartMessenger.java:5) at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:2) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:143) at android.os.Looper.loop(Looper.java:122) at android.app.ActivityThread.main(ActivityThread.java:5421) 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:914) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707) 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:146)

Device
Name | Android
Rooted | no
Version | 5.1.1(LMY47V)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions