Skip to content Skip to sidebar Skip to footer

Android Studio: Session 'app': Error Launching Activity

I have a problem with Android Studio when run the App, I have following error: $ adb shell am start -n 'com.ta94.xahmad.theerror/com.ta94.xahmad.theerror.MainActivity' -a android.

Solution 1:

I has the same problem and none of recommended methods worked. Since at least in my case application still launched on emulator/phone, so I figured, that debugging still possible if you use Run->Attach debugger to android process. The problem is that it was hard to debug startup errors. In that case the following method works:

  1. run->debug app (or shift+f9)
  2. On phone message "Waiting For Debugger" pops up instead of launching application (don't click anything!!!!)
  3. Run->Attach debugger to android process
  4. Wait a bit
  5. Application launches with debugger attached

That's a workaround, but worked for me. Hope that will help.

Solution 2:

I had the similar Problem while debugging through my Mobile phone... I had followed number of posts but nothing worked out for me... then, I did manual uninstall of the previously installed app from Mobile manually... then all works as expected!!

Post a Comment for "Android Studio: Session 'app': Error Launching Activity"