Android support library setup with maven

前端 未结 6 843
甜味超标
甜味超标 2020-11-27 15:55

I\'m kind of new to Android.

I\'m setting up a maven module for android application (it\'s inside an existing multi-module project), which uses Google Support Librar

6条回答
  •  清歌不尽
    2020-11-27 16:30

    I've just run into the same problem and ended up deploying in a public gitgub repository.

    If you still need to use it, you can do one of the following:

    Add the github repository to the repositories section in your pom.xml:

    
      android.support-mvn-repo
      https://raw.github.com/kmchugh/android.support/mvn-repo
      
        true
        daily
      
    
    

    Then you can add the dependency as follows:

    
    
      uk.co.icatalyst
      android-support-v4
      18
      compile
    
    

    Or, fork the repository, then you can use your own URL for the repository URL.

    [Edit] I've updated the libraries, an alternative dependency would be:

    
      com.android.support
      support-v4
      18.0.0
      compile
    
    

    And for the gridlayout:

    
      com.android.support
      gridlayout-v7
      18.0.0
      compile
    
    

提交回复
热议问题