Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webview_flutter] Not working on some Android devices #27285

Closed
huuang opened this issue Jan 30, 2019 · 4 comments
Closed

[webview_flutter] Not working on some Android devices #27285

huuang opened this issue Jan 30, 2019 · 4 comments
Labels
c: crash Stack traces logged to the console e: device-specific Only manifests on certain devices p: webview The WebView plugin package flutter/packages repository. See also p: labels. platform-android Android applications specifically

Comments

@huuang
Copy link

huuang commented Jan 30, 2019

Steps to Reproduce

I use below code to show a web view, it works well in one Android device, but not in another.

WebView(
          initialUrl: "https://cn.bing.com",
          javascriptMode: JavascriptMode.unrestricted,
        )

The bad device info:
image
image

Logs

flutter run -d L --target-platform android-arm
Launching lib/main.dart on PACM00 in debug mode...
Initializing gradle...                                       0.7s
Resolving dependencies...                                    2.4s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done                          2.5s
Built build/app/outputs/apk/debug/app-debug.apk.
Syncing files to device PACM00...
I/zygote  (17118): Do partial code cache collection, code=29KB, data=29KB
I/zygote  (17118): After code cache collection, code=29KB, data=29KB
I/zygote  (17118): Increasing code cache capacity to 128KB
I/zygote  (17118): Do partial code cache collection, code=62KB, data=50KB
I/zygote  (17118): After code cache collection, code=62KB, data=50KB
I/zygote  (17118): Increasing code cache capacity to 256KB
D/libc-netbsd(17118): [getaddrinfo]:  hostname=t1.xxxx.io;  servname=(null);  app_pid=17118;  app_uid=10279;  ai_flags=1024;  ai_family=0; ai_socktype=1 from prox result 0
D/libEGL  (17118): ARC_TRACE: ARCASM_eglMakeCurrent(ctx:0xcdcc7e00)
D/HWUIExtension(17118): MTKProgramCache.generateProgram: 562984313159681
D/HWUIExtension(17118): createProgram 0x0002000800000001, binary 0xf3b01cac, length 5080,format 36705 within 267ns
I/flutter (17118): ResponseFuture<SystemConfig> {:status: 200, content-type: application/grpc, code: 0, desc: , x-envoy-upstream-service-time: 1, date: Wed, 30 Jan 2019 09:46:37 GMT, server: envoy}
 2.5s

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state),
press "R".
An Observatory debugger and profiler on PACM00 is available at: http://127.0.0.1:51155/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
I/zygote  (17118): Do full code cache collection, code=124KB, data=93KB
I/zygote  (17118): After code cache collection, code=121KB, data=85KB
I/BufferQueue(17118): [unnamed-17118-0](this:0xcf5ce000,id:0,api:0,p:-1,c:-1) BufferQueuecore=(17118:com.biss.exchange)
W/GuiExt  (17118): Cannot find GuiExtService
E/GED     (17118): ged_gpu_timestamp: GED_ERROR_FAIL eErr = 0, 7
I/GLConsumer(17118): [SurfaceTexture-0-17118-0] detachFromContext
E/WebViewFactory(17118): No such method for getDefinedWebViewPackageName: java.lang.NoSuchMethodException: getDefinedWebViewPackageName []
I/BufferQueueProducer(17118): [SurfaceTexture-0-17118-0](this:0xcf5ce000,id:0,api:1,p:414,c:-1) connect(P): api=1 producer=(414:???) producerControlledByApp=false
D/BufferQueueProducer(17118): [SurfaceTexture-0-17118-0](this:0xcf5ce000,id:0,api:1,p:414,c:-1) cancelBuffer: slot 0
D/BufferQueueProducer(17118): [SurfaceTexture-0-17118-0](this:0xcf5ce000,id:0,api:1,p:414,c:-1) cancelBuffer: slot 0
flutter doctor -v
[✓] Flutter (Channel dev, v1.1.9, on Mac OS X 10.14.2 18C54, locale en-CN)
    • Flutter version 1.1.9 at /Users/xxxx/Development/flutter
    • Framework revision 1407091bfb (3 weeks ago), 2019-01-08 20:40:19 -0800
    • Engine revision e5ec3cf3ea
    • Dart version 2.1.1 (build 2.1.1-dev.0.1 2cb346bd0c)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/xxxx/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 2.0.0
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.30.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.22.2

[✓] Connected device (3 available)
    • PACM00                    • LR9LRGO7SOSC7D85                         • android-arm64
      • Android 8.1.0 (API 27)
    • Android SDK built for x86 • emulator-5554                            • android-x86
      • Android 9 (API 28) (emulator)
    • xxx's iPhone X          • 902918b17e72xxxx • ios
      • iOS 12.1.2

• No issues found!
@zoechi
Copy link
Contributor

zoechi commented Jan 30, 2019

Not a single search result in Google for getDefinedWebViewPackageName

@zoechi zoechi added c: crash Stack traces logged to the console e: device-specific Only manifests on certain devices platform-android Android applications specifically p: webview The WebView plugin labels Jan 30, 2019
@zoechi zoechi added this to the Goals milestone Jan 30, 2019
@huuang
Copy link
Author

huuang commented Mar 12, 2019

Because of this issue: #24974

@ikkyu0319
Copy link

@huuang 这个问题解决了么?自定义控件 黑屏~

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console e: device-specific Only manifests on certain devices p: webview The WebView plugin package flutter/packages repository. See also p: labels. platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests

3 participants