yandexmobile / react-native-appmetrica

React Native bridge to the AppMetrica on both iOS and Android.
MIT License
52 stars 132 forks source link

[Android] java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported #27

Open vismutls opened 5 years ago

vismutls commented 5 years ago

After launch app i'm get next error:

java.lang.RuntimeException: Unable to create application [**appid**].MainApplication: java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5954)
    at android.app.ActivityThread.access$1200(ActivityThread.java:200)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6810)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377
    at org.chromium.android_webview.AwBrowserProcess.a(PG:40)
    at vo.c(PG:88)
    at vo.b(PG:152)
    at vo.e(PG:169)
    at com.android.webview.chromium.WebViewChromiumFactoryProvider.getStatics(PG:211)
    at android.webkit.WebView.setWebContentsDebuggingEnabled(WebView.java:2124)
    at com.aureactnativeapp.MainApplication.onCreate(MainApplication.java:89)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5949)

What's problem?


React native: 0.59.9 NodeJS: 10.13.0

java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)