简体   繁体   中英

How to add an android project as a JAR file in another android project

I have an android project containing only login module. I want to integrate this into another android project. I searched and got the answer that make JAR file of login module project or make that as a library project. At login button click i have to call activity of other project. How can i do this? Please provide best solution to do this integration.

Thanks in advance. Please Help.

If you have some library module you like to reuse, best way would be to make plain jar project out of it. You can see example here:

https://github.com/ko5tik/jsonserializer

This project depends on android libraries and one built and put into repository (thisw is in deed on maven central) it can be referenced by your android project. ( either in IDE settings, or as maven dependency )

You have to be more specific your build environment.

You can create your own jar file from your classes and you can add it in your android project. See link below for more information, it may help you.

JAR files and Android Project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM