How to manually install App Engine in Android Studio?

I just added the App Engine module to my app and upon syncing, gradle started downloading the App Engine zip from maven. App Engine's zip file is about 150mb+ and using maven to automatically download it is painfully slow so I decided to manually download the appengine java sdk ( and manually install it. I have the zip now, but where do I place it so that Android Studio (0.8.1) picks it up and install it instead of trying to download it from maven's repository?



The templates for appengine that ship with android studio download the appengine sdk by default... so if you are using those templates, you have to do the following.

edit the build.gradle file and remove

dependencies {
  appengineSdk ""  <--- remove


appengine {
  downloadSdk = true <--- remove this line as it tells it to dl the sdk    

Then you can reference a downloaded sdk using a system property. Create a file in the same directory as your build.gradle file in your appengine module

systemProp.appengine.sdk.root = "path to appengine sdk"

There are other ways to specify the location of the sdk (like using an environment variable) that might work better for you, check

A completely different approach would be be to create a local maven repository for the appengine sdk and reference that directly and leave everything else intact.

repositories {
  maven {
    url 'file://path/to/myCustomRepo'

So this method is easiest if you grab the appengine sdk directly from because it will be named correctly. (||appengine-java-sdk|1.9.6|zip) but chose the version you are referencing in your build file.

About the maven repo, you need to set it up correctly. If your downloaded zip is in /path/to/myCustomRepo you need to actually put the zip in the correct location : /path/to/myCustomRepo/com/google/appengine/appengine-java-sdk/1.9.6 depending on the version number you're using.

If you only have the zip file in the repository directory you need to modify the downloadSdk line to indicate all that is available is the "zip" with the @zip modifier.

downloadSdk ""

If you don't want to use the @zip you can add a simple .pom file (next to the .zip) so the system can correctly determine the reference


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""

Need Your Help

MSChart: How to group RangeBar data with text labels instead of indexes?

c# .net data-visualization mschart

I'm looking to plot data on a RangeBar chart area (System.Windows.Forms.DataVisualization.Charting) and I'm having issues grouping the data when I have text values for the labels on the vertical ax...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.