[Java] SysUtils : ApplicationContext에서 ApplicationContext가 null입니다 (WebView).


Answers

Question

WebView 기반 앱 시작에서 이상한 것을 볼 수 있습니다. 그것은 응용 프로그램에 전혀 영향을 미치지 않지만 오류가 나타나는 이유가 궁금합니다. 아무것도 충돌하지 않고 모든 것이 정상이지만 오류가있는 것 같습니다 ...

여기 logcat입니다

Loading com.google.android.webview version 42.0.2311.137 (code 2311137)
I/LibraryLoader Time to load native libraries: 2 ms (timestamps 3347-3349)
I/LibraryLoader Expected native library version number "",actual native library version number ""
V/WebViewChromiumFactoryProvider Binding Chromium to main looper Looper (main, tid 1) {2d3b4b2c}
I/LibraryLoader Expected native library version number "",actual native library version number ""
I/chromium [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserStartupController Initializing chromium process, singleProcess=true
W/art Attempt to remove local handle scope entry from IRT, ignoring
E/SysUtils ApplicationContext is null in ApplicationStatus
W/chromium [WARNING:resource_bundle.cc(286)] locale_file_path.empty()
I/chromium [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=34 off=6850672 len=3697
I/chromium [INFO:aw_browser_main_parts.cc(76)] Loading webviewchromium.pak from, fd:35 off:7953036 len:1161174
I/Adreno-EGL <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc
W/AudioManagerAndroid Requires BLUETOOTH permission
W/chromium [WARNING:data_reduction_proxy_config.cc(150)] SPDY proxy OFF at startup
W/art Attempt to remove local handle scope entry from IRT, ignoring
W/AwContents onDetachedFromWindow called when already detached. Ignoring
I/GAv4 Google Analytics 4.5.0/7327 is starting up. To enable debug logging on a device run:
    adb shell setprop log.tag.GAv4 DEBUG
    adb logcat -s GAv4

여기에서 오류가 발생한다고 가정합니다. https://chromium.googlesource.com/chromium/src/base/+/master/android/java/src/org/chromium/base/SysUtils.java

몇 줄의 WebView 초기화

...
// load url in webView
webView.loadUrl(webViewUrl);
webView.setWebViewClient(new MyAppWebViewClient());

// implement WebChromeClient inner class
// we will define openFileChooser for select file from camera
webView.setWebChromeClient(new WebChromeClient() {
...

무슨 일이야?