Setting up a new project
To build this project, we will use our RenderBox
library created in Chapter 5, RenderBox Engine. You can use yours, or grab a copy from the downloadable files provided with this book or our GitHub repository (use the commit tagged after-ch5
—https://github.com/cardbookvr/renderboxlib/releases/tag/after-ch5). For a more detailed description of how to import the RenderBox
library, refer to the final Using RenderBox in future projects section of Chapter 5, RenderBox Engine. Perform the following steps to create a new project:
- With Android Studio opened, create a new project. Let's name it
SolarSystem
and target Android 4.4 KitKat (API 19) with an Empty Activity. - Create new modules for each of
renderbox
,common
andcore
packages, using File | New Module | Import .JAR/.AAR Package. - Set the modules as dependencies for the app, using File | Project Structure.
- Edit the
build.gradle
file as explained in Chapter 2, The Skeleton Cardboard Project, to compile against...