当前位置: 首页 > 知识库问答 >
问题:

颤振不包括本机调试符号

通沛
2023-03-14

在android Studio上使用flutter构建我的应用程序,当我上传我的应用程序包(通过flutter build appbundle制作时,会弹出消息:

Warning

This App Bundle contains native code, and youve not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug. Learn More

我已经尝试了目前在线的所有解决方案来解决这个问题。以下各项的每种组合:
这些解决方案:

  • https://github.com/flutter/flutter/issues/60240#issuecomment-894683946
  • https://github.com/flutter/flutter/issues/60240#issuecomment-917321657
  • https://stackoverflow.com/a/63436935/5229301
  • https://stackoverflow.com/a/64729294/5229301
  • https://stackoverflow.com/a/70337587/5229301

升级到Flatter 2.10.0升级到Android Studio Bumblebee | 2021.1.1补丁1并单击检查更新,它对此做出响应,您已经安装了最新版本的Android Studio和插件
试图检查gradle插件版本,但它已打包到android studio中,我看不到版本,也看不到升级选项<将Android SDK构建工具升级到33-rc1。通过SDK manager安装NDK(并排)通过SDK manager安装CMake通过SDK manager添加NDK。dir=/home/jaden/Android/Sdk/ndk/23.1.7779620到本地。属性文件,尽管这显然已被弃用。添加android。构建类型。释放ndk。debugSymbolLevel='SYMBOL\u TABLE'到我的应用程序/构建的底部。格拉德尔
来自应用程序/内部版本。格拉德尔:

android {
    compileSdkVersion 31

    ...

    defaultConfig {
        applicationId "app.(myapp)"
        minSdkVersion 23
        targetSdkVersion 31
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }
    ndkVersion "23.1.7779620"
    buildTypes {
        ...
        release {
            signingConfig signingConfigs.release
            ndk {
                debugSymbolLevel 'SYMBOL_TABLE'
            }
        }
    }
}

颤振医生:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.0, on Manjaro Linux 5.13.19-2-MANJARO, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2021.1)
[!] Connected device
    ! No devices available
[✓] HTTP Host Availability

! Doctor found issues in 2 categories.

颤振构建appbundle-v的最后几行:

[        ] > Task :package_info_plus:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :package_info_plus:parseReleaseLocalResources UP-TO-DATE
[        ] > Task :package_info_plus:generateReleaseRFile UP-TO-DATE
[        ] > Task :package_info_plus:javaPreCompileRelease UP-TO-DATE
[        ] > Task :package_info_plus:compileReleaseJavaWithJavac UP-TO-DATE
[        ] > Task :package_info_plus:mergeReleaseGeneratedProguardFiles UP-TO-DATE
[        ] > Task :package_info_plus:exportReleaseConsumerProguardFiles UP-TO-DATE
[        ] > Task :fluttertoast:compileReleaseAidl NO-SOURCE
[        ] > Task :fluttertoast:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :fluttertoast:parseReleaseLocalResources UP-TO-DATE
[        ] > Task :fluttertoast:generateReleaseRFile UP-TO-DATE
[        ] > Task :fluttertoast:compileReleaseKotlin UP-TO-DATE
[        ] > Task :fluttertoast:javaPreCompileRelease UP-TO-DATE
[        ] > Task :fluttertoast:compileReleaseJavaWithJavac UP-TO-DATE
[  +97 ms] > Task :fluttertoast:mergeReleaseGeneratedProguardFiles UP-TO-DATE
[        ] > Task :fluttertoast:exportReleaseConsumerProguardFiles UP-TO-DATE
[        ] > Task :permission_handler:compileReleaseAidl NO-SOURCE
[        ] > Task :permission_handler:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :permission_handler:parseReleaseLocalResources UP-TO-DATE
[        ] > Task :permission_handler:generateReleaseRFile UP-TO-DATE
[        ] > Task :permission_handler:javaPreCompileRelease UP-TO-DATE
[        ] > Task :permission_handler:compileReleaseJavaWithJavac UP-TO-DATE
[        ] > Task :permission_handler:mergeReleaseGeneratedProguardFiles UP-TO-DATE
[        ] > Task :permission_handler:exportReleaseConsumerProguardFiles UP-TO-DATE
[        ] > Task :app:buildKotlinToolingMetadata UP-TO-DATE
[        ] > Task :app:checkReleaseDuplicateClasses UP-TO-DATE
[        ] > Task :app:compileReleaseAidl NO-SOURCE
[        ] > Task :app:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :cloud_firestore:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :file_picker:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :firebase_auth:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :firebase_core:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :flutter_fimber:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :flutter_inappwebview:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :flutter_keyboard_visibility:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :fluttertoast:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :image_picker:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :package_info_plus:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :path_provider_android:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :permission_handler:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :share_plus:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :shared_preferences_android:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :url_launcher_android:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :webview_flutter_android:writeReleaseAarMetadata UP-TO-DATE
[        ] > Task :app:checkReleaseAarMetadata UP-TO-DATE
[ +495 ms] > Task :app:copyFlutterAssetsRelease
[        ] > Task :app:processReleaseManifestForPackage UP-TO-DATE
[        ] > Task :app:processReleaseResources UP-TO-DATE
[        ] > Task :cloud_firestore:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :file_picker:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :firebase_auth:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :flutter_fimber:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :flutter_inappwebview:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :flutter_keyboard_visibility:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :fluttertoast:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :image_picker:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :package_info_plus:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :path_provider_android:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :permission_handler:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :share_plus:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :shared_preferences_android:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :url_launcher_android:bundleLibCompileToJarRelease UP-TO-DATE
[        ] > Task :webview_flutter_android:bundleLibCompileToJarRelease UP-TO-DATE
[  +96 ms] > Task :app:compileReleaseKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileRelease UP-TO-DATE
[        ] > Task :app:compileReleaseJavaWithJavac UP-TO-DATE
[        ] > Task :app:extractProguardFiles UP-TO-DATE
[        ] > Task :app:mergeReleaseGeneratedProguardFiles UP-TO-DATE
[        ] > Task :app:processReleaseJavaRes NO-SOURCE
[        ] > Task :cloud_firestore:processReleaseJavaRes NO-SOURCE
[        ] > Task :cloud_firestore:bundleLibResRelease NO-SOURCE
[        ] > Task :file_picker:processReleaseJavaRes NO-SOURCE
[        ] > Task :file_picker:bundleLibResRelease NO-SOURCE
[        ] > Task :firebase_auth:processReleaseJavaRes NO-SOURCE
[        ] > Task :firebase_auth:bundleLibResRelease NO-SOURCE
[        ] > Task :firebase_core:processReleaseJavaRes NO-SOURCE
[        ] > Task :firebase_core:bundleLibResRelease NO-SOURCE
[        ] > Task :flutter_fimber:processReleaseJavaRes NO-SOURCE
[        ] > Task :flutter_fimber:bundleLibResRelease UP-TO-DATE
[        ] > Task :flutter_inappwebview:processReleaseJavaRes NO-SOURCE
[        ] > Task :flutter_inappwebview:bundleLibResRelease NO-SOURCE
[        ] > Task :flutter_keyboard_visibility:processReleaseJavaRes NO-SOURCE
[        ] > Task :flutter_keyboard_visibility:bundleLibResRelease NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:processReleaseJavaRes NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibResRelease NO-SOURCE
[        ] > Task :fluttertoast:processReleaseJavaRes NO-SOURCE
[        ] > Task :fluttertoast:bundleLibResRelease UP-TO-DATE
[        ] > Task :image_picker:processReleaseJavaRes NO-SOURCE
[        ] > Task :image_picker:bundleLibResRelease NO-SOURCE
[        ] > Task :package_info_plus:processReleaseJavaRes NO-SOURCE
[        ] > Task :package_info_plus:bundleLibResRelease NO-SOURCE
[        ] > Task :path_provider_android:processReleaseJavaRes NO-SOURCE
[        ] > Task :path_provider_android:bundleLibResRelease NO-SOURCE
[        ] > Task :permission_handler:processReleaseJavaRes NO-SOURCE
[        ] > Task :permission_handler:bundleLibResRelease NO-SOURCE
[        ] > Task :share_plus:processReleaseJavaRes NO-SOURCE
[        ] > Task :share_plus:bundleLibResRelease NO-SOURCE
[        ] > Task :shared_preferences_android:processReleaseJavaRes NO-SOURCE
[        ] > Task :shared_preferences_android:bundleLibResRelease NO-SOURCE
[        ] > Task :url_launcher_android:processReleaseJavaRes NO-SOURCE
[        ] > Task :url_launcher_android:bundleLibResRelease NO-SOURCE
[        ] > Task :webview_flutter_android:processReleaseJavaRes NO-SOURCE
[        ] > Task :webview_flutter_android:bundleLibResRelease NO-SOURCE
[        ] > Task :app:mergeReleaseJavaResource UP-TO-DATE
[        ] > Task :cloud_firestore:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :file_picker:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :firebase_auth:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :firebase_core:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :flutter_fimber:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :flutter_inappwebview:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :flutter_keyboard_visibility:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :fluttertoast:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :image_picker:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :package_info_plus:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :path_provider_android:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :permission_handler:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :share_plus:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :shared_preferences_android:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :url_launcher_android:bundleLibRuntimeToJarRelease UP-TO-DATE
[        ] > Task :webview_flutter_android:bundleLibRuntimeToJarRelease UP-TO-DATE
[ +172 ms] > Task :app:minifyReleaseWithR8 UP-TO-DATE
[        ] > Task :app:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :cloud_firestore:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :cloud_firestore:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :cloud_firestore:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :file_picker:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :file_picker:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :file_picker:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :firebase_auth:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :firebase_auth:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :firebase_auth:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :firebase_core:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :firebase_core:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :firebase_core:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :flutter_fimber:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :flutter_fimber:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :flutter_fimber:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :flutter_inappwebview:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :flutter_inappwebview:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :flutter_inappwebview:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :flutter_keyboard_visibility:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :flutter_keyboard_visibility:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :flutter_keyboard_visibility:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :fluttertoast:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :fluttertoast:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :fluttertoast:copyReleaseJniLibsProjectOnly UP-TO-DATE
[  +16 ms] > Task :image_picker:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :image_picker:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :image_picker:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :package_info_plus:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :package_info_plus:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :package_info_plus:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :path_provider_android:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :path_provider_android:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :path_provider_android:copyReleaseJniLibsProjectOnly UP-TO-DATE
[  +98 ms] > Task :permission_handler:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :permission_handler:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :permission_handler:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :share_plus:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :share_plus:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :share_plus:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :shared_preferences_android:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :shared_preferences_android:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :shared_preferences_android:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :url_launcher_android:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :url_launcher_android:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :url_launcher_android:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :webview_flutter_android:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :webview_flutter_android:mergeReleaseNativeLibs NO-SOURCE
[  +98 ms] > Task :webview_flutter_android:copyReleaseJniLibsProjectOnly UP-TO-DATE
[        ] > Task :app:mergeReleaseNativeLibs UP-TO-DATE
[        ] > Task :app:stripReleaseDebugSymbols UP-TO-DATE
[+2799 ms] > Task :app:buildReleasePreBundle
[        ] > Task :cloud_firestore:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :file_picker:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :firebase_auth:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :firebase_core:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :flutter_fimber:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :flutter_inappwebview:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :flutter_keyboard_visibility:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :fluttertoast:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :image_picker:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :package_info_plus:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :path_provider_android:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :permission_handler:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :share_plus:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :shared_preferences_android:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :url_launcher_android:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :webview_flutter_android:prepareReleaseArtProfile UP-TO-DATE
[        ] > Task :app:mergeReleaseArtProfile UP-TO-DATE
[        ] > Task :app:compileReleaseArtProfile UP-TO-DATE
[        ] > Task :app:collectReleaseDependencies UP-TO-DATE
[        ] > Task :app:configureReleaseDependencies UP-TO-DATE
[        ] > Task :app:extractReleaseNativeSymbolTables UP-TO-DATE
[        ] > Task :app:parseReleaseIntegrityConfig UP-TO-DATE
[        ] > Task :app:writeReleaseAppMetadata UP-TO-DATE
[        ] > Task :app:validateSigningRelease UP-TO-DATE
[+3397 ms] > Task :app:packageReleaseBundle
[+4398 ms] > Task :app:shrinkBundleReleaseResources
[+5699 ms] > Task :app:signReleaseBundle
[        ] > Task :app:produceReleaseBundleIdeListingFile
[        ] > Task :app:createReleaseBundleListingFileRedirect
[        ] > Task :app:bundleRelease
[  +96 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[        ] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[        ] See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 36s
[        ] 375 actionable tasks: 11 executed, 364 up-to-date
[ +397 ms] Running Gradle task 'bundleRelease'... (completed in 37.5s)
[  +30 ms] ✓ Built build/app/outputs/bundle/release/app-release.aab (68.2MB).
[   +5 ms] "flutter appbundle" took 39,072ms.
[ +235 ms] ensureAnalyticsSent: 224ms
[   +5 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +3 ms] exiting with code 0

令人疯狂的是,用于构建和发布Android应用程序的flutter文档中完全没有提到包含本机调试符号。这让我相信,出于某种原因,flutter应该已经将它们包括在应用程序包中,但事实并非如此。这与混淆我的代码有关吗?我没有混淆我的,但我需要使用那里描述的解决方案来拉出本机调试符号吗
是否支持?我应该直接上传没有这个功能的应用程序吗?当我收到难以理解的撞车报告时,我该怎么办?

共有1个答案

徐昕
2023-03-14

事实证明,由于某种原因,由于我使用了gradle插件7.1.1,问题正在发生。将classpath'com.android.tools.build: gradle: 7.1.1'更改为'classpath'com.android.tools.build: gradle: 4.1.3"解决了我的问题。google play控制台识别应用程序包中的本机调试符号。不清楚为什么除了在应用程序包中,目录BUNDLE-METADATA包含目录:
使用7.1.1:

com.android.tools.build.gradle
com.android.tools.build.libraries
com.android.tools.build.obfuscation

使用4.1.3:

com.android.tools.build.debugsymbols
com.android.tools.build.libraries
com.android.tools.build.obfuscation

我已经在多个版本的android gradle插件上试过了,我可以说问题发生在android gradle插件版本4.1.3之后。所以我现在的解决方案是制作android/build。gradle拥有:

buildscript {
    ...
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.3'
        ...
    }
}

插件的下一个版本4.2.0省略了本机调试文件,尽管它包含在应用程序/build.gradle中:

android {
    ...
    packagingOptions {
        dex {
            useLegacyPackaging true
        }
        jniLibs {
            useLegacyPackaging true
        }
    }
}
 类似资料:
  • 将颤振集成到主机应用程序(docs)时,有几种方法可以实现,其中一种(最简单的)方法是通过颤振活动类在新活动中打开颤振。这样地: 传统上,对于Flutter侧的Android风格窗口,我们创建带有后退按钮的AppBar。 此AppBar后退按钮和Android系统后退按钮的行为必须相同:按下后退按钮时,前台活动必须关闭(完成)。 目前系统后退按钮确实关闭了,但如何从flutters AppBar后

  • 我正在开发一个原生插件,并试图进行单元测试。所有单元测试都将在Dart中完成(无本机代码)。 Flutter有一个测试示例,说明如何使用测试从Dart到本机的调用方法通道。 问题是,我还没有找到测试从本机调用Dart的方法通道的方法,该Dart使用<code>setMethodCallHandler</code>来处理本机调用。 下面是一个示例

  • 如何删除Flutter中的调试横幅? 我正在使用,我希望屏幕截图上没有横幅。现在确实有了。 注意,emulator不支持配置文件和发布模式的

  • 我有这个问题,索门能帮我吗?因为seet依赖于flutter_localizations,而SDK依赖于intl0.17.0,所以intl0.17.0是必需的。因此,由于seet依赖于intl^0.16.0,版本解决失败。pub get失败(1;因此,由于seet依赖于intl^0.16.0,版本解决失败。)

  • 我可以使用“startAfter”和“limit”进行分页,但它有错误。 例如,在Firestore DB中,我有7条记录: 当页面大小为5时,第一页就可以了,因为我使用了: 它给了我1-5项。 当它加载第二页时,我使用了: 问题是第二页结果只有item7,item6消失了。“开始”也有同样的问题。 真希望它有“抵消”功能,有人有解决办法吗?