You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/guides/messages/xa5207.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,33 @@ ms.date: 06/26/2019
7
7
8
8
## Example messages
9
9
10
-
```
10
+
```dotnetcli
11
11
XA5207: Could not find android.jar for API Level 28. This means the Android SDK platform for API Level 28 is not installed. Either install it in the Android SDK Manager (Tools > Android > Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed.
12
12
```
13
13
14
14
## Issue
15
15
16
-
In order to build a project, the Android SDK Platform matching the target API level must be installed.
16
+
In order to build a project, the Android SDK Platform matching the target API level must be installed.
17
17
18
18
## Solution
19
19
20
-
Use the Android SDK Manager to install the Android SDK Platform for the desired API level.
20
+
Use the Android SDK Manager (Tools > Android > Android SDK Manager...) to install the Android SDK Platform for the desired API level. Alternatively you can install the missing API level by running the following from a terminal or command prompt
21
+
22
+
`dotnet build -t:InstallAndroidDependencies -f net8.0-android -p:AndroidSdkDirectory=<path to sdk directory>`
23
+
24
+
Part of the new .net android system is when upgrading projects you will automatically be
25
+
upgraded to the latest API level. For example net7.0-android allowed you to target API 33,
26
+
but net8.0-android will automatically target API 34. If you want to keep your current
27
+
target API level you will need to add the 'uses-sdk' `android:targetSdkVersion` to your `AndroidManifest.xml` file.
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Properties/Resources.resx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -867,7 +867,7 @@ Remove the '{0}' reference from your project and add the '{1}' NuGet package ins
867
867
{0} - The missing tool name</comment>
868
868
</data>
869
869
<dataname="XA5207"xml:space="preserve">
870
-
<value>Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. {2} ({1} missing.)</value>
870
+
<value>Could not find android.jar for API level {0}. This means the Android SDK platform for API level {0} is not installed. {2} ({1} missing.) See https://aka.ms/xa5207 for more details.</value>
871
871
<comment>The following are literal names and should not be translated: android.jar
0 commit comments