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 (appengine-java-sdk-1.9.6.zip) 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?
Thanks!
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 "com.google.appengine:appengine-java-sdk:X.X.X" <--- remove
...
}
and
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
gradle.properties
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 https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With