Export Eclipse Engineering Package apk to Unity3d with Ant

Source: Internet
Author: User

We often need to complete the APK, tell us to change the version number, or the package name, but each time the packaging is very long. Let's just go out with an Eclipse project and then use ant to automatically package it.

1. Setting Environment variables

2. Generate Build.xml File

Android update project-t android-21-p./

3. Modify the signature file

Create a text file ant.properties

Key.store=user.keystorekey.store.password=123123key.alias=yingyongbaokey.alias.password=123123

Key.store is where you store your signature files.

4. Packing

Ant Release

5. Check the generated file

Bin directory under xxx-release.apk

--------------------------------------------------------------------------------------------------------------Mac version------- ----------------------------------------------------

proj_path=$1echo proj_path=${proj_path}android_home=/users/vmmac/documents/  Androidsdkecho android_home=${android_home}ant_home=/users/vmmac/documents/apache-ant-1.10 . 1 echo ant_home=${ant_home}export PATH= $PATH: ${android_home}/tools:${android_home}/ platform-tools:${ant_home}/-T android--P./ANT Debug

Export Eclipse Engineering Package apk to Unity3d with Ant

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.