如何手动机器人工作室安装应用程序引擎? [英] How to manually install App Engine in Android Studio?

查看:169
本文介绍了如何手动机器人工作室安装应用程序引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚添加的应用程序引擎模块,以我的应用程序,并在同步,摇篮开始下载从行家的App Engine的拉链。 App Engine的zip文件大约是150MB +和使用Maven自动下载它,所以我决定手动下载应用程序引擎的Java SDK(appengine-java-sdk-1.9.6.zip),并手动安装十分缓慢。我有压缩了,但我在哪里把它使机器人工作室(0.8.1)将它拾起并安装试图从Maven的库下载它,而不是?

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?

谢谢!

推荐答案

一个完全不同的方法将是创建的应用程序引擎的SDK和参考直接离开一切的本地Maven仓库其他不变。

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'
  }
  mavenCentral()
}

所以这种方法是最简单的,如果你直接从maven.org抢了应用程序引擎的SDK,因为它会被正确命名。 (的http://search.maven.org/#artifactdetails|com.google.appengine|appengine-java-sdk|1.9.6|zip)但选择的版本,你所引用的构建文件。

So this method is easiest if you grab the appengine sdk directly from maven.org because it will be named correctly. (http://search.maven.org/#artifactdetails|com.google.appengine|appengine-java-sdk|1.9.6|zip) but chose the version you are referencing in your build file.

关于Maven的回购,则需要正确设置它。 如果你下载的压缩是在 /路径/要/ myCustomRepo 你需要居然把压缩在正确的位置: /路径/要/ myCustomRepo / COM /谷歌/应用程序引擎/应用程序引擎-java的SDK / 1.9.6 取决于你所使用的版本号。

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.

如果您只有在你需要修改 downloadSdk 行表示所有可用资源库目录中的zip文件与压缩与 @zip 修改

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 "com.google.appengine:appengine-java-sdk:1.9.6@zip"

如果你不想使用 @zip 您可以添加一个简单的.pom文件(旁边的.zip),这样系统就可以正确地确定参考

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

应用程序引擎-java的SDK-1.9.6.pom

appengine-java-sdk-1.9.6.pom

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.google.appengine</groupId>
  <artifactId>appengine-java-sdk</artifactId>
  <packaging>zip</packaging>
  <version>1.9.6</version>
</project>

这篇关于如何手动机器人工作室安装应用程序引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆