Menu
Lumberyard
User Guide (Version 1.14)

Building and Debugging Your Lumberyard Android Application in Android Studio

This feature is in preview release and is subject to change.

After your Lumberyard project is imported, you can build and debug it using Android Studio.

To run and debug your application in Android Studio

  1. In Android Studio, select a game project to debug from the target list in the menu bar.

    The prepopulated list of targets vary depending on the Android Studio version.

    The Stable version might display the following:

    • SamplesProjectLauncher

    • MultiplayerProjectLauncher

    • MultiplayerProjectLauncher-native

    • SamplesProjectLauncher-native

    The Canary version might display the following:

    • SamplesProjectLauncher

    • MultiplayerProjectLauncher

    For Stable versions of Android Studio 2.1.x, select the target with the -native suffix in order to debug native code.

  2. Set your native break points.

  3. Connect your Android device to your computer.

  4. In Android Studio, click Debug target.

  5. In the Select Deployment Target dialog box, select your device and click OK.

    Note

    Lumberyard does not support Android emulators. If you do not see your physical device, click Cancel and run adb kill-server in the terminal pane in Android Studio. Then attempt another run/debug build.

  6. Android Studio will build the project, launch the application, and connect to the debugger.

  7. You can also do the following from the menu bar:

    • Click Make project to build all targets in the project, minus the APK packaging step.

    • Click Select target to run the selected game project (if multiple game projects are enabled).

    • Click Run target to run the selected game project with application-specific monitoring on the Android Monitor tab.

    • Click Debug target to run the selected game project with the Android Studio debugger attached.