Freeze NDK 21 on Windows Images (#2499)

This commit is contained in:
Dmitry Shibanov
2021-01-21 11:31:35 +03:00
committed by GitHub
parent c3525f6978
commit 905516cc9c
3 changed files with 6 additions and 2 deletions

View File

@@ -77,6 +77,10 @@ Install-AndroidSDKPackages -AndroidSDKManagerPath $sdkManager `
# Android NDK root path.
$ndkRoot = "$sdkRoot\ndk-bundle"
# This changes were added due to incompatibility with android ndk-bundle (ndk;22.0.7026061).
# Link issue virtual-environments: https://github.com/actions/virtual-environments/issues/2481
# Link issue xamarin-android: https://github.com/xamarin/xamarin-android/issues/5526
New-Item -Path $ndkRoot -ItemType SymbolicLink -Value "$sdkRoot\ndk\21.3.6528147"
if (Test-Path $ndkRoot) {
setx ANDROID_HOME $sdkRoot /M