You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/start/import-and-running.md
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -32,19 +32,21 @@ If you have just generated the project in gdx-liftoff, you may click the option
32
32
If you want to execute your freshly imported project, you have to follow different steps, depending on your IDE and the platform you are targeting.
33
33
## Desktop
34
34
### In IDEA/Android Studio:
35
-
1. Extend the Gradle tab on the right sight of your window: <br/>
35
+
1. Extend the Gradle tab on the right side of your window.<br/>
36
+
2. Expand the tasks of your project and then select: `lwjgl3 -> Tasks -> application -> run`:<br/>
36
37

37
-
2. Expand the tasks of your project and then select: lwjgl3 -> other -> run.
38
38
39
-
**In Android Studio 4.2**, tasks are no longer shown by default. Go to `Settings -> Experimental` and uncheck `Do not build Gradle task list during Gradle sync`. Then sync the project via `File -> Sync Project with Gradle Files`
39
+
**In Android Studio 4.2**, tasks are no longer shown by default. Go to `Settings -> Experimental` and check `Configure all Gradle tasks during Gradle Sync`. Then sync the project via `File -> Sync Project with Gradle Files`:<br/>
40
+

40
41
{: .notice--primary}
41
42
42
43
<b>Alternatively</b>, you can create a run configuration:
43
44
1. Right-click your Lwjgl3Launcher class
44
-
2. Select 'Run Lwjgl3Launcher.main()'. This should fail with missing assets, because we need to hook up the assets folder first.
45
-
3. Open up Run Configurations <br/>
45
+
2. Select 'Run Lwjgl3Launcher.main()'. This should fail with missing assets, because we need to hook up the assets folder first:<br/>
46
+

47
+
3. Open up Run Configurations:<br/>
46
48

47
-
4. Edit the Run Configuration that was just created by running the lwjgl3 project and set the working directory to point to your `assets` folder<br/>
49
+
4. Edit the Run Configuration that was just created by running the lwjgl3 project and set the working directory to point to your `assets` folder:<br/>
48
50

49
51
50
52
On **macOS**, LWJGL3 projects require one extra step: Either add the ([experimental](https://github.com/libgdx/libgdx/issues?q=is%3Aissue+is%3Aopen+label%3Aglfw-awt-macos)) `com.badlogicgames.gdx:gdx-lwjgl3-glfw-awt-macos` dependency to your lwjgl3 project, or, in your Run Configuration, set the VM Options to `-XstartOnFirstThread`. Additional information can be found [here](/news/2021/07/devlog-7-lwjgl3#do-i-need-to-do-anything-else).
0 commit comments