GoogleAppEngine后端代采用Android Studio的失败,因为Maven的安装 [英] GoogleAppEngine backend generation with Android Studio fails due to Maven installation

查看:145
本文介绍了GoogleAppEngine后端代采用Android Studio的失败,因为Maven的安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想生成与Android工作室谷歌的云后端。

I am trying to generate a Google cloud backend with Android studio.

我一直遵循基本的谷歌的教程,但是当我点击生成云后台按钮错误找不到行家的有效安装。也许你还没有安装Maven的或没有设置你的Maven的路径

I have been following the basic google tutorial, however the error when I click the "generate cloud backend" button is "Could not find a valid installation of maven. Perhaps you have not installed Maven or have not setup your Maven paths".

我有行家在我的路径设置:
M2_HOME /Users/seren/apache-maven-3.1.1

I have maven set up in my path: M2_HOME /Users/seren/apache-maven-3.1.1

我已经尝试了不同版本的行家,以及(<一个href=\"http://stackoverflow.com/questions/19585598/cannot-generate-cloud-backend-in-android-studio\">also建议对堆栈溢出)的Apache Maven的-3.0.5,但这并没有工作。

I have tried a different version of maven as well (also suggested on stack overflow) apache-maven-3.0.5, but this did not work.

有没有人设法解决这个问题?

Has anyone managed to get around this?

感谢

推荐答案

你能尝试以下操作:


  1. 如果您能够通过命令行做了 MVN ,然后Maven是安装适用的路径。

  2. 确保 M2_HOME 环境变量指向确实你的maven目录的根目录。

  3. 在项目设置,转到Maven的。确保Maven的路径不是自动覆盖,然后将条目是空的指令说M2_HOME将被使用。

  4. 请重新启动你的Andr​​oid工作室,以防万一,你当它是开放的做这些设置。

  1. If you are able to do a mvn from command line, then maven is installed and is available in the PATH.
  2. Ensure that M2_HOME environment variable is indeed pointing to the root of your maven directory.
  3. In the Project Settings, go to Maven. Ensure that the Maven path is not overwriten and then the entry is empty with the instruction saying that M2_HOME will be used.
  4. Do restart your Android Studio, just in case you did these settings while it was open.

这篇关于GoogleAppEngine后端代采用Android Studio的失败,因为Maven的安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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