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:
- run->debug app (or shift+f9)
- On phone message "Waiting For Debugger" pops up instead of launching application (don't click anything!!!!)
- Run->Attach debugger to android process
- Wait a bit
- Application launches with debugger attached
That's a workaround, but worked for me. Hope that will help.
Post a Comment for "Android Studio: Session 'app': Error Launching Activity"