Android (Java) - cr_BindingManager:无法调用determinedVisibility() - 从未见过pid 的连接:

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39192219/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 04:10:11  来源:igfitidea点击:

Android (Java) - cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid:

javaandroidandroid-fragmentswebview

提问by Daniel

I trying to make an android app with two fragments, each with a webview window

我试图用两个片段制作一个 android 应用程序,每个片段都有一个 webview 窗口

The first one in the my MainActivity class

我的 MainActivity 类中的第一个

WebView mWebView = (WebView) findViewById(R.id.webview_today);

    mWebView.setWebViewClient(new WebViewClient());

    Log.wtf("System.out", "Open VPToday");
    mWebView.loadUrl("myLink");

And the second in the fragment class

片段类中的第二个

View rootView = inflater.inflate(R.layout.fragment_morgen, container, false);

    WebView webView = (WebView)rootView.findViewById(R.id.webview_tomorrow);

    webView.loadUrl("myLink2");

    webView.setWebViewClient(new WebViewClient());

But on every start I get the warning "W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: [Some numbers]" and when I go to the fragment, I see a white fragment and get this warnings in logcat instantly:

但是在每次开始时,我都会收到警告“W/cr_BindingManager:无法调用确定的可见性()-从未看到 pid 的连接:[某些数字]”,当我转到片段时,我看到一个白色片段并收到此警告立即登录:

W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 7647
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 7647

采纳答案by Daniel

Solved the problem, after I moved the first webview into a fragment And used this:

解决了这个问题,在我将第一个 webview 移动到一个片段中并使用它之后:

https://stackoverflow.com/a/31159185/6765618

https://stackoverflow.com/a/31159185/6765618

in both fragments

在两个片段中