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
- 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
- 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?