From 7e3ea69d027126de1db7f3edf6a06720710c439b Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Sun, 3 Feb 2019 18:00:46 +0200 Subject: [PATCH 1/6] Update fastlane setup documentation https://github.com/fastlane/fastlane/issues/14135 --- docs/getting-started/android/setup.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/getting-started/android/setup.md b/docs/getting-started/android/setup.md index 45d51e97bf..d19a6a99e6 100644 --- a/docs/getting-started/android/setup.md +++ b/docs/getting-started/android/setup.md @@ -6,6 +6,25 @@ ## Setting up _fastlane_ +Android Studio maintains its own instances of Gradle and Java, which you do not have access to in the command line, so even though you can build and run apps in Android Studio, you need to install those tools for fastlane. Additionally, you need to install Java 8 and not later versions of Java, which do not play well with Gradle. + +### Install Java 8 +For MacOS, the easiest way to install Java 8 is with [Homebrew](https://brew.sh/). + +Run the following commands in the terminal: +`brew tap caskroom/versions` +`brew cask install java8` + +The terminal command: `javac -version` should now return `javac 1.8.0_202-ea` + +If this is not the case, your JAVA_HOME environment variable likely refers to a more recent version of Java. The easiest way to fix this is to uninstall all java instances via Homebrew with `brew cask uninstall java` and then install java 8 with `brew cask install java8` + +### Install Gradle + +on MacOs you can install Gradle via homebrew with the command `brew install gradle` + +### Configure fastlane + Navigate your terminal to your project's directory and run ```no-highlight From c4254c2cb26043ad1314d481837ff029acdc1367 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Sun, 3 Feb 2019 18:05:23 +0200 Subject: [PATCH 2/6] Update docs/getting-started/android/setup.md Co-Authored-By: asterixorobelix --- docs/getting-started/android/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/android/setup.md b/docs/getting-started/android/setup.md index d19a6a99e6..70be39bb55 100644 --- a/docs/getting-started/android/setup.md +++ b/docs/getting-started/android/setup.md @@ -21,7 +21,7 @@ If this is not the case, your JAVA_HOME environment variable likely refers to a ### Install Gradle -on MacOs you can install Gradle via homebrew with the command `brew install gradle` +On macOS you can install Gradle via homebrew with the command `brew install gradle`. ### Configure fastlane From 3f801a162b2308e14e51c449c0697b3355af15a3 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Sun, 3 Feb 2019 18:10:12 +0200 Subject: [PATCH 3/6] Update docs/getting-started/android/setup.md Co-Authored-By: asterixorobelix --- docs/getting-started/android/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/android/setup.md b/docs/getting-started/android/setup.md index 70be39bb55..bc44721192 100644 --- a/docs/getting-started/android/setup.md +++ b/docs/getting-started/android/setup.md @@ -6,7 +6,7 @@ ## Setting up _fastlane_ -Android Studio maintains its own instances of Gradle and Java, which you do not have access to in the command line, so even though you can build and run apps in Android Studio, you need to install those tools for fastlane. Additionally, you need to install Java 8 and not later versions of Java, which do not play well with Gradle. +Android Studio maintains its own instances of Gradle and Java, which you do not have access to in the command line. So even though you can build and run apps in Android Studio, you need to install those tools for fastlane separately. Additionally, you need to install Java _8_ and not a later version of Java, which do not play well with Gradle. ### Install Java 8 For MacOS, the easiest way to install Java 8 is with [Homebrew](https://brew.sh/). From 2cdb3c13277d552d08514c7e01d99d57107a696a Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Sun, 3 Feb 2019 18:12:44 +0200 Subject: [PATCH 4/6] Update setup.md --- docs/getting-started/android/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/android/setup.md b/docs/getting-started/android/setup.md index bc44721192..074f075fa7 100644 --- a/docs/getting-started/android/setup.md +++ b/docs/getting-started/android/setup.md @@ -15,7 +15,7 @@ Run the following commands in the terminal: `brew tap caskroom/versions` `brew cask install java8` -The terminal command: `javac -version` should now return `javac 1.8.0_202-ea` +The terminal command: `javac -version` should now return something similar to: `javac 1.8.0_202-ea` If this is not the case, your JAVA_HOME environment variable likely refers to a more recent version of Java. The easiest way to fix this is to uninstall all java instances via Homebrew with `brew cask uninstall java` and then install java 8 with `brew cask install java8` From 44ae454680aeab32a2d67b05b4aa45a1f928d572 Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Sun, 3 Feb 2019 18:15:56 +0200 Subject: [PATCH 5/6] Update setup.md --- docs/getting-started/android/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/android/setup.md b/docs/getting-started/android/setup.md index 074f075fa7..b104fe44d3 100644 --- a/docs/getting-started/android/setup.md +++ b/docs/getting-started/android/setup.md @@ -9,7 +9,7 @@ Android Studio maintains its own instances of Gradle and Java, which you do not have access to in the command line. So even though you can build and run apps in Android Studio, you need to install those tools for fastlane separately. Additionally, you need to install Java _8_ and not a later version of Java, which do not play well with Gradle. ### Install Java 8 -For MacOS, the easiest way to install Java 8 is with [Homebrew](https://brew.sh/). +For macOS, the easiest way to install Java 8 is with [Homebrew](https://brew.sh/). Run the following commands in the terminal: `brew tap caskroom/versions` @@ -17,7 +17,7 @@ Run the following commands in the terminal: The terminal command: `javac -version` should now return something similar to: `javac 1.8.0_202-ea` -If this is not the case, your JAVA_HOME environment variable likely refers to a more recent version of Java. The easiest way to fix this is to uninstall all java instances via Homebrew with `brew cask uninstall java` and then install java 8 with `brew cask install java8` +If this is not the case, your JAVA_HOME environment variable likely refers to a more recent version of Java. The easiest way to fix this is to uninstall all Java instances which were installed via Homebrew with `brew cask uninstall java` and then install Java 8 with `brew cask install java8` ### Install Gradle From 36f5c87000cc8bb9d3cb1e6180348a1d59bf756b Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Sun, 3 Feb 2019 18:16:55 +0200 Subject: [PATCH 6/6] Update setup.md --- docs/getting-started/android/setup.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/android/setup.md b/docs/getting-started/android/setup.md index b104fe44d3..7e91a9c88b 100644 --- a/docs/getting-started/android/setup.md +++ b/docs/getting-started/android/setup.md @@ -12,8 +12,10 @@ Android Studio maintains its own instances of Gradle and Java, which you do not For macOS, the easiest way to install Java 8 is with [Homebrew](https://brew.sh/). Run the following commands in the terminal: -`brew tap caskroom/versions` -`brew cask install java8` +``` +brew tap caskroom/versions +brew cask install java8 +``` The terminal command: `javac -version` should now return something similar to: `javac 1.8.0_202-ea`