Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I link assets from android to desktop in libgdx?

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.

like image 510
Vincent Williams Avatar asked Feb 10 '15 13:02

Vincent Williams


People also ask

Do you need Android SDK for LibGDX?

The Android mobile OS is one of LibGDX's supported target platforms. Before you can create Android applications, you have to download and install the Android SDK.

How to import LibGDX project into Eclipse?

Importing the Project In Eclipse, choose File -> Import... -> Gradle -> Existing Gradle Project (make sure that your freshly generated project is not located inside of your workspace). In NetBeans it is File -> Open Project .


1 Answers

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

like image 130
MikeMatusiak Avatar answered Nov 03 '22 01:11

MikeMatusiak