Create an Android Jar library for distribution

后端 未结 11 1343
眼角桃花
眼角桃花 2020-11-27 09:21

I know of Android Library projects, which allow you to create a shared-source project that can be pulled into Android Applications as needed. However, that requires that sou

11条回答
  •  眼角桃花
    2020-11-27 10:00

    Android doesn't provide a special kind of Android-JAR. But what you can do is adding a build.xml to your project and build the JAR with ant.

    My build.xml looks like this:

    
      
    This is my Android lib
      
      
      
      
    
      
        
          
          
          
          
          
        
      
    
    

    Build the JAR by running ant jar in your projects main folder.

提交回复
热议问题