Maven的需要在Android的工作室产生谷歌App Engine的后端时,后端、工作室、Android、Maven

2023-09-07 23:12:02 作者:巴黎塔下的告白

所以,我想谷歌的App Engine的后端添加到我的应用程序。我使用的是Android 0.3.0工作室。当我尝试生成App Engine的后端我收到以下错误:

So I'm trying to add a Google App Engine backend to my app. I'm using Android Studio 0.3.0. When I try to "Generate App Engine Backend" I get the following error:

找不到行家的有效安装。也许你还没有安装Maven的或没有设置你的Maven的路径

Could not find a valid installation of maven. Perhaps you have not installed Maven or have not setup your Maven paths

我有点在失落,因为我认为这是Maven的默认安装有AS?是否有人有线索?

I'm a little at a lost because I thought that Maven was installed by default with AS? Does anybody have a clue?

推荐答案

我找到了解决办法。你必须在环境变量M2_HOME的路径设置为你的Maven安装。对我来说,这是C:\ Program Files文件(x86)的\机器人\ Apache的行家-3.1.1。我有行家seperatly从AS,但我认为,如果你点M2_HOME对AS安装的Maven的,这也将正常工作。另外,你可以尝试你机器上Maven到Path环境变量中添加bin文件夹。就我而言,这是C:\ Program Files文件(x86)的\机器人\ Apache的行家-3.1.1 \ bin中。

I found a solution. You have to set the enviroment variable M2_HOME to the path to your maven installation. For me that was "C:\Program Files (x86)\Android\apache-maven-3.1.1". I have maven seperatly from AS but I think this would also work if you point M2_HOME towards the AS installation of maven. Additionally you can try to add the bin folder of you maven installation to the Path enviroment variable. In my case that was "C:\Program Files (x86)\Android\apache-maven-3.1.1\bin".

似乎有在作为最新版本的错误。你必须明确地设置了环境变量的路径,否则将无法正常工作。设置在设置路径 - > Maven的(检查覆盖后)不工作。 这里的链接到这个问题: https://开头code.google.com/p/android/issues/detail?id=61783

There seems to be a bug in the newest version of AS. You have to explicitly set the path with the enviroment variables otherwise it will not work. Setting the path in Settings -> Maven (after checking override) does not work. Here's the link to the issue: https://code.google.com/p/android/issues/detail?id=61783

 
精彩推荐
图片推荐