这是indexloc提供的服务,不要输入任何密码
Skip to content

[Add2App] Release app doesn't display the flutter view #81350

@Limy1992

Description

@Limy1992

demo : https://github.com/flutter/samples/tree/master/add_to_app/android_view

2021-04-28 10:00:28.609 E: [ERROR:flutter/shell/common/shell.cc(242)] Dart Unhandled Exception: NoSuchMethodError: No top-level getter 'showCell' declared.
    Receiver: top-level
    Tried calling: showCell, stack trace: #0      NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:212)
2021-04-28 10:00:28.609 E: [ERROR:flutter/runtime/dart_isolate.cc(699)] Could not resolve main entrypoint function.
2021-04-28 10:00:28.609 E: [ERROR:flutter/runtime/dart_isolate.cc(190)] Could not run the run main Dart entrypoint.
2021-04-28 10:00:28.611 E: [ERROR:flutter/runtime/runtime_controller.cc(401)] Could not create root isolate.
2021-04-28 10:00:28.611 E: [ERROR:flutter/shell/common/shell.cc(571)] Could not launch engine with configuration.
2021-04-28 10:00:28.787 E: win=Window{65277b9 u0 Splash Screen com.xq.testandroidflutter EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.928], locale zh-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
[√] Connected device (3 available)

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowa: releaseChallenges faced when attempting to productionize an appengineflutter/engine repository. See also e: labels.found in release: 2.0Found to occur in 2.0found in release: 2.3Found to occur in 2.3has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions