Try fix Android
@@ -422,7 +422,7 @@ function CMake-Generate {
$Arguments += " -DQUIC_USE_XDP=on"
}
if ($Platform -eq "android") {
- $env:PATH = "$env:ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin:$env:PATH"
+ $env:PATH = "$env:ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$env:PATH"
switch ($Arch) {
"x86" { $Arguments += " -DANDROID_ABI=x86"}
"x64" { $Arguments += " -DANDROID_ABI=x86_64" }
@@ -430,7 +430,8 @@ function CMake-Generate {
"arm64" { $Arguments += " -DANDROID_ABI=arm64-v8a" }
}
$Arguments += " -DANDROID_PLATFORM=android-29"
- $NDK = $env:ANDROID_NDK_HOME
+ $NDK = $env:ANDROID_NDK_LATEST_HOME
+ $env:ANDROID_NDK_HOME = $env:ANDROID_NDK_LATEST_HOME
$NdkToolchainFile = "$NDK/build/cmake/android.toolchain.cmake"
$Arguments += " -DANDROID_NDK=""$NDK"""
$Arguments += " -DCMAKE_TOOLCHAIN_FILE=""$NdkToolchainFile"""
