Android 颤振构建apk不';t工作并显示Gradle任务AssemblereRelease失败,退出代码为1

Android 颤振构建apk不';t工作并显示Gradle任务AssemblereRelease失败,退出代码为1,android,flutter,mobile-application,Android,Flutter,Mobile Application,这是我在构建应用程序时遇到的错误: You are building a fat APK that includes binaries for android-arm, android-arm64. 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 bu

这是我在构建应用程序时遇到的错误:

You are building a fat APK that includes binaries for android-arm, android-arm64.
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
        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 --split-per-abi
        Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Initializing gradle...                                              0.5s
Resolving dependencies...                                           2.0s
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      79.9s
Gradle task assembleRelease failed with exit code 1
这是颤振运行-v命令的输出:


提前感谢。

该错误清楚地为您提供了两个构建APK的选项。如果您试图将其上传到Play store,那么创建应用程序包可能是最好的选择。只需按照错误中的说明生成应用程序包:

flatterbuildappbundle——目标平台android arm,android-arm64

这将在发布文件夹中创建.aab文件-

祝你好运