An Android Studio development environment created for Google's Project Tango using Docker
355
This is an Android Studio development environment created for Google's Project Tango. I built this as a fast way to spin-up a Project Tango development environment for myself, but I am happy to integrate suggestions and improvements.
It was made to run on an Ubuntu 14.04 host, but should work under other versions of Linux and OSX (using XQuartz & Docker-Machine) without too much tweaking. I haven't used Windows much for Docker, so I can't really say how well it will work.
Note: You must have a Project Tango device to use this Docker Image. Google has not yet made a Project Tango emulator to use for development.
git clone [email protected]:toddsampson/project-tango-docker.git && cd project-tango-dockerandroid-studio/Dockerfile to the correct values and use the build command instead of image in the docker-compose.yml.xhost + to allow the container to communicate with your host system's X server.AndroidStudioProjects folder on your host computer, create one. Then update /home/toddsampson/AndroidStudioProjects in docker-compose.yml with the path to your project folder; leaving everything after the ":" unchanged.docker-compose run android-studio which will setup the Docker Container and launch a Bash terminal.studio.sh to start Android Studio. Unless you need specific customizations, simply click Next a few times to begin installation of the SDK.Allow USB debugging alert. When it does, check the Always allow from this computer box and click OK.Finish to complete setup.Once Android Studio has been setup, you can run through the Project Tango examples found in the Docker Container's /srv directory. We will walk through the /srv/tango-examples-c/hello-tango-jni-example as a quick getting-started.
Import Project (Eclipse, ADT, Gradle, etc.)/srv/tango-examples-c/hello-tango-jni-example folder and click OKInstall missing platform/build tools and sync project or Fix plugin version and sync project followed by Finish. After Gradle stops showing you these messages, usually three screens, proceed to the next step.Project printed vertically on the left side of Android Studio.Gradle Scripts. Then double-click on local.properties.ndk.dir=/home/android/Android/android-ndk-r10e below the sdk.dir=... line and save the file. This will allow Gradle to know where to find the Android NDK.Google Project Tango Tablet Development Kit... under Choose a running device, check Use same device for future launches and click OK.Cheers, Todd
Content type
Image
Digest
sha256:8d228e72e…
Size
1.7 GB
Last updated
almost 11 years ago
docker pull toddsampson/project-tango-dev-environment