User Tools

Site Tools


android:android_studio

Setup Android Studio

Development at AGTEK for Android is done using the Android Studio IDE and the Android SDK/NDK packages. You need to download and install the following packages:

Once those are installed, create an environment variable ANDROID_NDK_HOME pointing to the root of the NDK directory. For instance mine has the value C:/android-ndk-10d and yours will probably be different depending on where you installed the NDK package itself.

WARNING: Android Studio uses different terminology than Eclipse. Be aware that the AS term “Project” refers to the collection of items you are working with (roughly equivalent to the “Workspace” concept in Eclipse). The AS term “Module” is roughly equivalent to our repository items (agtek_lib, SmartDirt, etal).

NOTE READY FOR PRIME TIME 2015-03-31 (SIGH)

Creating the Workspace

You'll need to get yourself started. This requires a new workspace and a copy of our source.

  • Start Android Studio
  • You'll see a window that looks like:

  • Select the Check out project from Version Control, and navigate to GIT.
  • Supply the URL to clone on the first line and your workspace directory on the second

  • Once this process is complete, you'll be presented with a view similar to:

  • The next step is to import any applications you want into the project.
  • Use the menu VCS→Checkout from Source Control→GIT
  • Supply appropriate arguments to clone dialog (like you did for AGTEK_Lib)
  • When asked to open a new Project, confirm and choose “this window”
  • You should now see agtek_lib and the application you chose.
  • Repeat the last few steps to get all the apps you need in the workspace.
  • At this time, you may wish to use the VCS menu to switch to another branch.
android/android_studio.txt · Last modified: 2015/03/31 19:08 by mjallison