Skip to content

Commit eeb6bb0

Browse files
committed
chore: update build-tools to 27.0.3
Update build tools to 27.0.3. With latest android runtime we use gradle 4.4 and it downloads build-tools-27.0.3 at some point. Then CLI try to use them, but license is not accepted. Result is failing android build. This will install latest build tools (and accept the license), so users will not encounter the issue described above.
1 parent 8979876 commit eeb6bb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

native-script.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ $androidExecutable = [io.path]::combine($env:ANDROID_HOME, "tools", "bin", "sdkm
156156

157157
Write-Host -ForegroundColor DarkYellow "Setting up Android SDK platform-tools..."
158158
echo y | cmd /c "$androidExecutable" "platform-tools"
159-
Write-Host -ForegroundColor DarkYellow "Setting up Android SDK build-tools;25.0.2..."
160-
echo y | cmd /c "$androidExecutable" "build-tools;25.0.2"
159+
Write-Host -ForegroundColor DarkYellow "Setting up Android SDK build-tools;27.0.3..."
160+
echo y | cmd /c "$androidExecutable" "build-tools;27.0.3"
161161
Write-Host -ForegroundColor DarkYellow "Setting up Android SDK platforms;android-25..."
162162
echo y | cmd /c "$androidExecutable" "platforms;android-25"
163163
Write-Host -ForegroundColor DarkYellow "Setting up Android SDK extras;android;m2repository..."

native-script.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def install_environment_variable(name, value)
146146
sdk_manager = File.join(ENV["ANDROID_HOME"], "tools", "bin", "sdkmanager")
147147
execute("echo y | #{sdk_manager} \"platform-tools\"", error_msg)
148148
execute("echo y | #{sdk_manager} \"tools\"", error_msg)
149-
execute("echo y | #{sdk_manager} \"build-tools;25.0.2\"", error_msg)
149+
execute("echo y | #{sdk_manager} \"build-tools;27.0.3\"", error_msg)
150150
execute("echo y | #{sdk_manager} \"platforms;android-25\"", error_msg)
151151
execute("echo y | #{sdk_manager} \"extras;android;m2repository\"", error_msg)
152152
execute("echo y | #{sdk_manager} \"extras;google;m2repository\"", error_msg)

0 commit comments

Comments
 (0)