Updated Android Studio, strange things started. I launch the project - the error takes off:

04/09 15:14:22: Launching app $ adb push D:\ASprojects\InnovationBeer\app\build\outputs\apk\app-debug.apk /data/local/tmp/eu.innovationpassport.innovationbeer $ adb shell pm install -r "/data/local/tmp/eu.innovationpassport.innovationbeer" pkg: /data/local/tmp/eu.innovationpassport.innovationbeer Success $ adb shell am start -n "eu.innovationpassport.innovationbeer/eu.innovationpassport.innovationbeer.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Unexpected error while executing: am start -n "eu.innovationpassport.innovationbeer/eu.innovationpassport.innovationbeer.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Error while Launching activity 

The most interesting thing is that the program works if you try to start it for a long time - it works 20+ times. I close the old application, sometimes it does not even help to restart the phone and Android Studio.

2 answers 2

Run> Edit Configurations> on the left Android Application, app> Right Launch Options> Launch: Select Default Activity.
It helped me

  • This is not an answer, but simply your discharge of emotions, not carrying useful information ... - Harry
  • @Harry, this is a cry from the heart) - justuser

There was a similar problem only for the Service, he killed the day for a decision, the beginning of the whole Google talked about problems with the manifest. The solution above solved the problem completely. Run> Edit Configurations> on the left Android Application, app> Right Launch Options> Launch: Select Default Activity .