User Tools

Site Tools


android:android_studio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
android:android_studio [2015/01/05 17:43]
mjallison
android:android_studio [2015/03/31 19:08] (current)
mjallison [Setup Android Studio]
Line 3: Line 3:
 Development at AGTEK for Android is done using the Android Studio IDE and the Android SDK/NDK packages. ​ 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: You need to download and install the following packages:
-  * [[http://​developer.android.com/​sdk/​index.html|Android Studio]] (current version is 1.02)+  * [[http://​developer.android.com/​sdk/​index.html|Android Studio]] (current version is 1.10)
   * [[https://​developer.android.com/​tools/​sdk/​ndk/​index.html|Android Native Development Kit]], e.g. NDK (current version is 10d)   * [[https://​developer.android.com/​tools/​sdk/​ndk/​index.html|Android Native Development Kit]], e.g. NDK (current version is 10d)
 +  * [[http://​git-scm.com/​download/​win|GIT for Windows]], current version is 1.9.5
 +    * When installing GIT, configure it to check out files with Windows line endings, and commit using Unix line endings.
  
 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. 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:
 +{{ :​android:​as-new-project.png?​640 |}}
 +  * 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
 +{{ :​android:​as-git-co.png?​640 |}}
 +  * Once this process is complete, you'll be presented with a view similar to:
 +{{ :​android:​as-initial-view.png?​640 |}}
 +  * 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.1420479819.txt.gz ยท Last modified: 2015/01/05 17:43 by mjallison