maven support for android projects?

前端 未结 5 1148
面向向阳花
面向向阳花 2021-01-01 15:02

I want to start a project for Android but i really like to build it using Maven. Does Google provide support for Maven or plan to support it? It would be great if anybody kn

5条回答
  •  猫巷女王i
    2021-01-01 15:33

    The Android Maven plugin has been updated to support changes made in the Android SDK r14 release. You will need to adjust your POM to use the new version. I experienced an out of memory error with the new version when building my app, so note the dex jvmArguments section to allow for more available memory.

    
        com.jayway.maven.plugins.android.generation2
        android-maven-plugin
        3.0.0-alpha-13
        
            
                ${android-platform}
            
            
                
                    -Xms256m
                    -Xmx512m
                
            
            true
            true
        
        true
    
    

    The latest version of the Android Configurator (m2e-android) for Eclipse also supports the changes in r14. Lastly, I've posted a follow up blog on the SpringSource site called Updated Maven Support for Android Projects, which goes over these updates to the tools.

提交回复
热议问题