0

I'm creating a new project with android studio (with empty activity). I'm not doing any change to the code (use all the defaults), and when I try to run it I get "Error while Launching activity", but the app starts on my device. when trying to start debug, the app is stuck on "waiting for debugger" this is the log I get in the "Run" tab:

$ adb shell am start -n "com.test.testapp/com.test.testapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Error while executing: am start -n "com.test.testapp/com.test.testapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.test.testapp/.MainActivity }

Error while Launching activity

I've tried everything solution suggested to this issue (disable Instant Run, add -r to install flags, delete .idea, clean, invalidate cache) and everything suggested here but nothing works. I'm trying this on a brand new Macbook Pro, with android studio 2.3.3. I had the same issue with my old laptop, so don't think it is a hardware issue. any help would be much appriciated.

Vishal Yadav
  • 3,642
  • 3
  • 25
  • 42
roeiki11
  • 279
  • 1
  • 3
  • 12

0 Answers0