【发布时间】:2020-04-03 01:13:03
【问题描述】:
我最近在 Flutter 中写了一个名为 app002 的应用程序,但是我遇到了一些问题我需要知道如何解决它们,我使用 GitBash 作为终端
颤振医生
lamoh@DESKTOP-QUA3N6C MINGW64 /e/programes/Flutter_Req/sourceCode
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.15063], locale ar-DZ)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code, 64-bit edition (version 1.40.2)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
这个命令花费了太多时间并且没有被执行
颤振构建apk
elamoh@DESKTOP-QUA3N6C MINGW64 /e/programes/Flutter_Req/sourceCode/app002
$ flutter build apk
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... 2,0s
Resolving dependencies...
我也尝试过,但没有任何效果
$ flutter build appbundle --target-platform android-arm,android-arm64
lamoh@DESKTOP-QUA3N6C MINGW64 /e/programes/Flutter_Req/sourceCode/app002
**$ flutter build appbundle --target-platform android-arm,android-arm64**
Initializing gradle... 2,3s
Resolving dependencies...
在项目目录中创建了一个名为 build 的文件夹,但里面只有 app.dill 文件存在。没有 apk 没有 iOS 文件
请帮忙!!! 谢谢
【问题讨论】: