'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]

  1. Open AVD Manager
  2. Wipe Data (delete datas from emulator)
  3. Open emulator
  4. Try to run app

Solution 2:[2]

I had a similar error when trying to run my flutter application. What I did was:

  1. Open AVD Manager
  2. Press on the small arrow (next to the pen) corresponding to your preferred device
  3. Select "Cold boot now"
  4. Wait for the emulator to open and boot
  5. 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. enter image description here

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:-

  1. Go to Setting.
  2. Then Go To Advance
  3. 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