Skip to content

Commit 093d8f3

Browse files
committed
Merge pull request #1655 from NativeScript/kerezov/platform-tools-before-tools
Install platform-tools before tools in setup scripts
2 parents b29d7f5 + 156c82c commit 093d8f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup/native-script.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if (!$env:JAVA_HOME) {
9999
# following commands are separated in case of having to answer to license agreements
100100
# the android tool will introduce a --accept-license option in subsequent releases
101101
$androidExecutable = [io.path]::combine($env:ANDROID_HOME, "tools", "android")
102-
echo y | cmd /c "$androidExecutable" update sdk --filter "tools" --all --no-ui
103102
echo y | cmd /c "$androidExecutable" update sdk --filter "platform-tools" --all --no-ui
103+
echo y | cmd /c "$androidExecutable" update sdk --filter "tools" --all --no-ui
104104
echo y | cmd /c "$androidExecutable" update sdk --filter "android-23" --all --no-ui
105105
echo y | cmd /c "$androidExecutable" update sdk --filter "build-tools-23.0.2" --all --no-ui
106106
echo y | cmd /c "$androidExecutable" update sdk --filter "extra-android-m2repository" --all --no-ui

setup/native-script.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def install(program_name, message, script, run_as_root = false, show_all_option
114114
# Note that multiple license acceptances may be required, hence the multiple commands
115115
# the android tool will introduce a --accept-license option in subsequent releases
116116
android_executable = File.join(ENV["ANDROID_HOME"], "tools", "android")
117-
execute("echo y | #{android_executable} update sdk --filter tools --all --no-ui", "There seem to be some problems with the Android configuration")
118117
execute("echo y | #{android_executable} update sdk --filter platform-tools --all --no-ui", "There seem to be some problems with the Android configuration")
118+
execute("echo y | #{android_executable} update sdk --filter tools --all --no-ui", "There seem to be some problems with the Android configuration")
119119
execute("echo y | #{android_executable} update sdk --filter android-23 --all --no-ui", "There seem to be some problems with the Android configuration")
120120
execute("echo y | #{android_executable} update sdk --filter build-tools-23.0.2 --all --no-ui", "There seem to be some problems with the Android configuration")
121121
execute("echo y | #{android_executable} update sdk --filter extra-android-m2repository --all --no-ui", "There seem to be some problems with the Android configuration")

0 commit comments

Comments
 (0)