11

Whenever I try to run the desktop version of my LibGDX project it says "badlogic.jpg not found". How can I link the assets folder from android to desktop?

I found this post but I can't find out how to do it for android studio. I tried just copying the assets folder but that doesn't work.

gunr2171
  • 16,104
  • 25
  • 61
  • 88
Vincent Williams
  • 2,836
  • 3
  • 17
  • 22

2 Answers2

20

Click Run -> Edit configurations..., then change the "Working directory" parameter. Click "Apply" and run again.

enter image description here

aga
  • 27,954
  • 13
  • 86
  • 121
12

Set working directory to path/android/assets when running the desktop launcher

MikeMatusiak
  • 393
  • 3
  • 6