android maven plugin does not get ANDROID_HOME env variable in Eclipse

前端 未结 9 2237
[愿得一人]
[愿得一人] 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 11:58

    Ensure your Android SDK installation contains the libraries for the same API version you have configured on your pom.xml.

    For example, if your configuration XML looks like:

    
        com.jayway.maven.plugins.android.generation2
        android-maven-plugin
        ...
        
            
                ${env.ANDROID_HOME}
                8
            
            ...
        
    
    

    then you should verify with Android SDK Manager (or directly checking on your filesystem: $ANDROID_HOME/platforms) that you have SDK API 8 installed. Of course you can also change your pom.xml to match the library installed.

提交回复
热议问题