'Error launching application on Android SDK built for x86
There are a least a dozen previously compiled and running flutter applets that suddenly will not compile under Android Studio or Intellij.
Even if i build a new default Flutter app i get this crash error:
Clearly something has changed .. plugins/dependencies have been upgraded/updated and the .gradle and .idea directories removed ... and projects rebuilt .. but nothing gets past this:
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
cmd: Can't find service: activity
Installing build/app/outputs/apk/app.apk...
Error: ADB exited with exit code 1
adb: failed to install/home/jedaa/workspace/flutter_apps/studio/flutter_apprescue/build/app/outputs/apk/app.apk: cmd: Can't find service: package
Error launching application on Android SDK built for x86.
Solution 1:[1]
- Open AVD Manager
- Wipe Data (delete datas from emulator)
- Open emulator
- Try to run app
Solution 2:[2]
I had a similar error when trying to run my flutter application. What I did was:
- Open AVD Manager
- Press on the small arrow (next to the pen) corresponding to your preferred device
- Select "Cold boot now"
- Wait for the emulator to open and boot
- Run your application
I hope that helps you!
Solution 3:[3]
Changing the emulator to cold boot rather than quick boot also seemed to resolve the problem. Rather than a complete wipe.
It's in advanced settings > emulated performance > boot option when editing a device in AVD.

Solution 4:[4]
no need to change system variables or adb. it's not adb or emulator error. change your device or emulator and check again!!!
Solution 5:[5]
Try to install using adb through command line:
<C:\Android\sdk\platform-tools\>adb -s yourdeviceID install -r build/app/outputs/apk/app.apk
you can follow this for more explanation: https://github.com/flutter/flutter/issues/8605
Thanks
Solution 6:[6]
I was installing the application on BlueStacks Emualtor and I resolve this issues using these steps:-
- Go to Setting.
- Then Go To Advance
- Then turn on Android Debug Bridge(ADV)
Using these steps we can resolve this issues on BlueStack.
Solution 7:[7]
<activity
android:exported="true">
</activity>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DomDunk |
| Solution 2 | Vlad Hondru |
| Solution 3 | akdombrowski |
| Solution 4 | BIS Tech |
| Solution 5 | shizhen |
| Solution 6 | m4n0 |
| Solution 7 | Suraj Rao |
