Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Documentation/guides/messages/xa5300.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ be located during the build.
This can be fixed on the command-line by overriding either the
`$(AndroidSdkDirectory)` or `$(JavaSdkDirectory)` MSBuild properties:

```sh
dotnet build -p:AndroidSdkDirectory=path/to/android/sdk -p:JavaSdkDirectory=path/to/jdk
```

Instructions to manually install the Android SDK or Java SDK are at: <https://aka.ms/dotnet-android-install-sdk>

This can also be fixed [within Visual Studio options][vs-sdk].

Consider submitting a [bug][bug] if you are getting this failure under
Expand Down
6 changes: 4 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,13 @@ In this message, the term "handheld app" means "app for handheld devices."
{3} - The Android SDK installer program name</comment>
</data>
<data name="XA5300_Android_SDK" xml:space="preserve">
<value>The Android SDK directory could not be found. Check that the Android SDK Manager in Visual Studio shows a valid installation. To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path.</value>
<value>The Android SDK directory could not be found. Install the Android SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk
To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path.</value>
<comment>The following terms should not be translated: AndroidSdkDirectory</comment>
</data>
<data name="XA5300_Java_SDK" xml:space="preserve">
<value>The Java SDK directory could not be found. Ensure that the Android section of the Visual Studio options has a valid Java SDK directory configured. To use a custom SDK path for a command line build, set the 'JavaSdkDirectory' MSBuild property to the custom path.</value>
<value>The Java SDK directory could not be found. Install the Java SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk
To use a custom JDK path for a command line build, set the 'JavaSdkDirectory' MSBuild property to the custom path.</value>
<comment>The following terms should not be translated: JavaSdkDirectory</comment>
</data>
<data name="XA5301" xml:space="preserve">
Expand Down