gpt4 book ai didi

android - Flutter 无法从 app.apk 读取 list 信息

转载 作者:IT王子 更新时间:2023-10-29 06:34:16 25 4
gpt4 key购买 nike

我四天前升级了 flutter,从那时起我就遇到了问题,工作区没有错误,因为其他协作者的代码运行良好。错误是:

Error running com.xxxxxxxx.signals. Default activity not found
Unable to read manifest info from F:\Projects\xxxxxxxx-mobile\xxxxxxxx-mobile\build\app\outputs\apk\app.apk.
No application found for TargetPlatform.android_x86.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.

我在 Visual Studio Code 终端中运行了以下命令:

flutter clean
flutter run

不幸的是,我应用的解决方案没有奏效:

  1. 然后我更改了我正在使用的存储库的分支
  2. 切换到 flutter 的 dev、beta 分支
  3. 重新安装模拟器
  4. 附上真实设备

我的 flutter 医生如下:

[√] Flutter (Channel dev, v1.3.13, on Microsoft Windows [Version 10.0.17134.648], locale en-US)
• Flutter version 1.3.13 at C:\src\flutter
• Framework revision 59ce7d6bff (2 days ago), 2019-03-18 11:20:10 -0700
• Engine revision e75f6de01f
• Dart version 2.2.1 (build 2.2.1-dev.1.1 None)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\jabir\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 32.0.1
• Dart plugin version 182.5124
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[√] VS Code (version 1.32.3)
• VS Code at C:\Users\jabir\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 2.24.0

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

最佳答案

我遇到了类似的问题,我通过删除 build/app/outputs/apk 目录中的 app.apk 修复了它,它成功了。

关于android - Flutter 无法从 app.apk 读取 list 信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55257232/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com