diff --git a/Documentation/docs-mobile/building-apps/build-properties.md b/Documentation/docs-mobile/building-apps/build-properties.md index e5f00d45b4b..13a13a880ee 100644 --- a/Documentation/docs-mobile/building-apps/build-properties.md +++ b/Documentation/docs-mobile/building-apps/build-properties.md @@ -964,6 +964,19 @@ If you are getting this error you can add the following to the which will allow the `dx` step to succeed. +## AndroidNdkDirectory + +The `$(AndroidNdkDirectory)` property specifies a custom Android NDK +installation directory. The path can be set in the project file or on the +command line: + +```dotnetcli +dotnet build -p:AndroidNdkDirectory=/path/to/android-ndk +``` + +If this property is not set, .NET for Android locates the NDK from the +configured Android development environment. + ## AndroidPackageFormat An enum-style property with valid diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets index 2a214899948..b7b6d277209 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.Aot.targets @@ -90,7 +90,7 @@ They run in a context of an inner build with a single $(RuntimeIdentifier).