首页 > 解决方案 > 我用颤振构建的应用程序在安装后立即崩溃

问题描述

我的应用程序在安装后立即崩溃。在进行构建时,我在 android studio 上没有收到任何错误。我是 Flutter 的新手,我想知道如何发现和解决问题。我提供了下面的代码。

C:\src\deliveryboy\flutter_application>flutter build apk --release
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
    To generate an app bundle, run:
        flutter build appbundle --target-platform android-arm,android-arm64,android-x64
        Learn more on: https://developer.android.com/guide/app-bundle
    To split the APKs per ABI, run:
        flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
        Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      52.6s
√ Built build\app\outputs\flutter-apk\app-release.apk (22.1MB).
C:\src\deliveryboy\flutter_application>

标签: androidandroid-studioflutter

解决方案


推荐阅读