In Android development, how does one package an android project into a jar project?

Source: Internet
Author: User

Reprinted
Juapk Android developer community

In the DOS window, run the command under the bin \ Classes file of the project.

CD file directory
1: If your project needs to introduce data files (slice, TXT files, etc.), first put these resource files into the asset files under the project, then copy your asset file to the classes file of your project,
2: Open your local disk, find the workspace folder of your project, find the file name corresponding to your project, and enter the bin folder of the project. We can find the classes file.
3: If your project also references other third-party jar packages, You need to include the third-party jar package into your project jar package.
Decompress the jar package and copy the extracted file to the classes/COM file. I have this COM file because the outermost layer of my project package name is com, your own project is determined by your own project and exists in parallel with the file of your project,
4: Then run: jar in the DOS window
-CVF jarname. jar *. In this way, we can see that a jarname. jar file is generated in the bin folder. This file is the package file of our project.

Intra-site Association
Import layoutlib. jar to the android Project
Add third-party jar to Android
How to solve a compilation error when importing a project with a jar package or so file
Android imports a project with a jar package or so file. How can this problem be solved?
Android-support-v4.jar
What does it do?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.