How to copy error message in Android Studio tooltip

On Windows: try,

  1. Hover over the yellow popup text
  2. Alt+LeftMouseClick
  3. The 'yellow text' should now be on your clipboard, ready to paste.

That is it!


The older solutions don't seem to be working for me. Not sure if the behavior changed, but here is what is working for me on a Mac with Android Studio 3.4:

  1. press control + option simultaneously
  2. hover over the text that has an error
  3. click on the tooltip when it pops up.

On Mac, a slightly different dance than Windows.

  • hold shift
  • click and hold towards the end of the text(probably missing last character)
  • keep holding mouse click and release shift
  • while holding mouse click, press Command + C to copy
  • paste wherever