Maven needed when generating Google App Engine backend in Android Studio

后端 未结 5 953
青春惊慌失措
青春惊慌失措 2021-01-25 21:23

AndroidDev

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 t

5条回答
  •  攒了一身酷
    2021-01-25 21:33

    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".

    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

提交回复
热议问题