Use gradle for automatic packaging and linuxgradle for packaging in Linux

Source: Internet
Author: User

Use gradle for automatic packaging and linuxgradle for packaging in Linux
1. download the software package

1,

wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgzwget http://services.gradle.org/distributions/gradle-2.12-bin.zip
Ii. installation 1. java
sudo add-apt-repository ppa:openjdk-r/ppasudo apt-get updatesudo apt-get install openjdk-8-jdksudo update-alternatives --config javasudo update-alternatives --config javac
2. Android sdk
./android list sdk

View Source

Refresh Sources:  Fetching https://dl.google.com/android/repository/addons_list-2.xml  Validate XML  Parse XML  Fetched Add-ons List successfully  Refresh Sources  Fetching URL: https://dl.google.com/android/repository/repository-11.xml  Validate XML: https://dl.google.com/android/repository/repository-11.xml  Parse XML:    https://dl.google.com/android/repository/repository-11.xml  Fetching URL: https://dl.google.com/android/repository/addon.xml  Validate XML: https://dl.google.com/android/repository/addon.xml  Parse XML:    https://dl.google.com/android/repository/addon.xml  Fetching URL: https://dl.google.com/android/repository/glass/addon.xml  Validate XML: https://dl.google.com/android/repository/glass/addon.xml  Parse XML:    https://dl.google.com/android/repository/glass/addon.xml  Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml  Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml  Parse XML:    https://dl.google.com/android/repository/extras/intel/addon.xml  Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml  Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml  Parse XML:    https://dl.google.com/android/repository/sys-img/android/sys-img.xml  Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml  Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml  Parse XML:    https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml  Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml  Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml  Parse XML:    https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml  Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml  Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml  Parse XML:    https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xmlPackages available for installation or update: 22   1- SDK Platform Android 4.4.2, API 19, revision 4   2- SDK Platform Android 4.3.1, API 18, revision 3   3- SDK Platform Android 4.2.2, API 17, revision 3   4- SDK Platform Android 4.1.2, API 16, revision 5   5- SDK Platform Android 4.0.3, API 15, revision 5   6- Google APIs, Android API 23, revision 1   7- Google APIs, Android API 22, revision 1   8- Google APIs, Android API 21, revision 1   9- Google APIs, Android API 19, revision 20  10- Glass Development Kit Preview, Android API 19, revision 11  11- Google APIs, Android API 18, revision 4  12- Google APIs, Android API 17, revision 4  13- Google APIs, Android API 16, revision 4  14- Google APIs, Android API 15, revision 3  15- GPU Debugging tools, revision 3.1  16- GPU Debugging tools, revision 1.0.3  17- Android Auto Desktop Head Unit emulator, revision 1.1  18- Google Play APK Expansion library, revision 1  19- Google Play Licensing Library, revision 1  20- Google Play Billing Library, revision 5  21- Android Auto API Simulators, revision 1  22- Google Web Driver, revision 2

Install as needed

./android update sdk --no-ui --filter 1,31,tool,platform-tool

If google is slow, you can change hosts.

74.125.237.1 dl-ssl.google.com
3. gradle

Add Environment Variables

export PATH=/mnt/javasrc/gradle-2.12/bin:/mnt/javasrc/android-sdk-linux:$PATH
Iii. Compile and Test
gradle assReleasegradle clean

  

Reference URL

Http://askubuntu.com/questions/464755/how-to-install-openjdk-8-on-14-04-lts

Https://developer.android.com/studio/index.html#downloads

Http://blog.csdn.net/catoop/article/details/7618099

Http://ftp.gnu.org/gnu/glibc/

Http://my.oschina.net/zhangxu0512/blog/262275

Http://www.cnblogs.com/killkill/archive/2010/08/23/1806468.html

Http://openjdk.java.net/install/

Https://www.unixmen.com/install-oracle-java-jdk-8-centos-76-56-4/

Http://stackoverflow.com/questions/31182240/what-exactly-is-tools-jar-in-the-android-sdk

Http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/

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.