Flutter:flutter应用在构建APK后无法运行

问题描述 投票:0回答:1

[您好,我终于用flutter开发了我的应用程序,这是因为我开发时使用API​​来运行它的时候取决于API数据,但是我需要使用communed输出apkflutter build apk我不会显示,但是当使用来自API的数据登录到应用程序时,我无法正常工作,但是当运行应用程序时,一切工作都很好……什么问题???

向我展示何时建立apk的消息

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'...                                                                                  Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.5\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses or overrides a deprecated A
PI.
Note: Recompile with -Xlint:deprecation for details.
Removed unused resources: Binary resource data reduced from 46KB to 37KB: Removed 20%
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                     413.1s (!)
√ Built build\app\outputs\apk\release\app-release.apk (19.3MB).
flutter apk
1个回答
0
投票

在android / app / src / main / AndroidManifest.xml上添加:

© www.soinside.com 2019 - 2024. All rights reserved.