Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK built for x86 does not support profile mode?

it throws this error when I run --profile

H:\MyApp>flutter run --profile
Profile mode is not supported by Android SDK built for x86.

but

  H:\MyApp>flutter run --debug

works perfectly.

any fixes ?

like image 351
Rageh El Azzazy Avatar asked Aug 24 '20 23:08

Rageh El Azzazy


2 Answers

I had the same problem for --release mode but got solved with this:

If you want to run a release mode APK on an emulator, it needs to be one of Flutter's supported ABIs: armeabi, armeabi-v7a, or x86_64.

as seen here.

As also refered by Flutter docs:

What are the supported target architectures?

When building your application in release mode, Flutter apps can be compiled for armeabi-v7a (ARM 32-bit), arm64-v8a (ARM 64-bit), and x86-64 (x86 64-bit). Flutter does not currently support building for x86 Android.

like image 127
Paulo Belo Avatar answered Oct 18 '22 03:10

Paulo Belo


I got the same issue it got FIXED 100%

Basically flutter does not support x86 to run profile so you need to run it on x64

Follow these steps

  1. Download x64 emulator / plug into your latest android mobile which have 64bit architecture

  2. Then run this command on terminal flutter run --profile

Then, voila, your app will be install on your device

like image 10
Pranav Ghodke Avatar answered Oct 18 '22 02:10

Pranav Ghodke