What is the difference between the Gradle and Linux configurations in the Windows environment?

Source: Internet
Author: User

My development environment: Windows + Android Studio + Gradle 2.8 all + Jenkins

Company CI Server environment: Linux + Gradle 2.10 bin + Jenkins

Linux in the following only represents the company's CI server configuration, based on its Linux server and Mac computer for reference.

What is the difference between the Gradle and Linux configurations in the Windows environment?

One, the path is different

SDK path in the 1.local.properties file

A) on Windows Sdk.dir=d\: \ \ANDROID\\SDK, note the escape character here, below

b) Linux on sdk.dir=/home/ADT-BUNDLE-LINUX-X86/SDK

2. Gradle path and version in the Gradle-wrapper.properties file

A) distributionurl=https\://services.gradle.org/distributions/gradle-2.8-all. zip on Windows

b) Linux on distributionurl=https\://services.gradle.org/distributions/gradle-2.10-bin. zip

3. The signature file path in the Keystore.properties file is different

a) storefile=\keys\\jenkinsgradletest.jks on Windows

b) Linux on storefile=/Keys/jenkinsgradletest.jks

Two, the compilation version and the compilation tool version is different

    1. Minsdkversion, Targetsdkversion, and buildtools version numbers in the App/build.gradle file need to be adjusted

A) on Windows minsdkversion 14,targetsdkversion , buildtoolsversion "0.2"

b) Linux on Minsdkversion, targetsdkversion, buildtoolsversion "0.2"

Third, Gradle different parameters

    1. When the user under the. gradle/gradle.properties file has different content, create one manually if it is not.

A) on Windows c:/users/kenny/.gradle/gradle.properties, set as follows: Org.gradle.daemon=true

b) on Linux /home/tester/.gradle/gradle.properties, set as follows: Org.gradle.daemon=false

Role: To enable Gradle to run in the background process, to avoid the frequent launch during development, destroy Gradle instances, so that implementation gradle up faster. For more information, see: https://docs.gradle.org/2.10/userguide/gradle_daemon.html

What is the difference between the Gradle and Linux configurations in the Windows environment?

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.