android maven plugin does not get ANDROID_HOME env variable in Eclipse

前端 未结 9 2233
[愿得一人]
[愿得一人] 2021-02-20 11:23

i\'m working on an Android app project and it is a Maven project. when i try to run as \"maven install\" this is what i get:

\"Failed to execute goal com.jayway.maven.pl

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 12:10

    on your command line, run:

    mvn clean install -- Dandroid.sdk.path="/Applications/Android Studio.app/sdk/"

    none of the other methods really worked. (setting ANDROID_HOME doesn't do anything)

提交回复
热议问题