Skip to content

ddfreiling/vagrant-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant image with Android SDK & NDK

Automated provisioning and configuration of an Ubuntu VM containing the Android development environment, including Android SDK, Android NDK using the Vagrant DevOps tool with Chef and shell-scripts.

This automated VM installation and configuration uses the DevOps tool Vagrant which works with both VirtualBox (free) and VMware Fusion & Workstation (paid plug-in) in addition to several Community Chef Cookbooks.

Currently, it will provision an Android VM for development with the following specifications:

  • Ubuntu Trusty64 VM
    • Memory size: 2048 MB
    • 2 vCPU
  • Ubuntu Unity Desktop as the UI launched at startup
    • See the provision.sh section "Install a desktop for the Android graphical tooling" for other options.
  • Android SDK r24.4.1
  • Android NDK r11c

Install Vagrant

Note: Vagrant has a prerequisite of an installed and functioning version of one of the following virtualization products,

  1. Download and install the latest version of Vagrant for your OS from https://www.vagrantup.com/downloads.html

  2. If using VMware, install the purchased VMware Provider Plug-in as mentioned in the documentation

Install the Android VM

Note: All the software needed is automatically downloaded as it is needed. Several of the downloads are somewhat large. Patience is a virtue while the automated installation is running.

  1. From your android-vm directory,

     $ git submodule init
     $ git submodule update
    
  2. Run the following to start Vagrant and kick-off the process to build an Android VM,

    For VirtualBox,

     $ vagrant up
    

    For VMware Fusion,

     $ vagrant up --provider=vmware_fusion 
    

    For VMware Workstation

     $ vagrant up --provider=vmware_workstation 
    

    Note: As the Android VM build runs you will see various types of screen output from Vagrant, Chef and Shell scripts -- some of the dependency downloads and compilations require a bit of time. Again, Patience is a virtue.

  3. Once the Android VM build provisioning process is complete, run the following to login via SSH,

     $ vagrant ssh
    

References

  1. Vagrant v2 documentation
  2. http://www.vagrantbox.es/
  3. Chef Cookbooks

About

Vagrant image for Android SDK development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages