为 x86 构建的 Android SDK 不支持配置文件模式?

Rag*_*azy 11 debugging android-sdk-2.3 flutter

当我运行时它会抛出这个错误 --profile

H:\MyApp>flutter run --profile
Profile mode is not supported by Android SDK built for x86.
Run Code Online (Sandbox Code Playgroud)

  H:\MyApp>flutter run --debug
Run Code Online (Sandbox Code Playgroud)

完美地工作。

任何修复?

Pau*_*elo 9

我有同样的--release模式问题,但解决了这个问题:

如果要在模拟器上运行发布模式 APK,它需要是 Flutter 支持的 ABI 之一:armeabi、armeabi-v7a 或 x86_64。

这里所见。


Sur*_*gch 8

在实际的 Android 设备上运行该应用程序,它将在配置文件模式下运行。


小智 7

我遇到了同样的问题,它已100% 修复

基本上 flutter 不支持 x86 来运行配置文件,所以你需要在 x64 上运行它

按着这些次序

  1. 下载 x64 模拟器/插入您最新的 64 位架构安卓手机

  2. 然后在终端 flutter run --profile 上运行此命令

然后walla您的应用程序将安装在您的设备上


小智 6

AVD 设置 > 创建新虚拟设备 > 选择任何设备,然后下一步 > x86 图像选择如图 2 > 下载任何版本 Ap\xc4\xb1 推荐级别 29 或 30

\n

在此输入图像描述

\n

在此输入图像描述

\n