diff --git a/Documentation/guides/messages/xa5207.md b/Documentation/guides/messages/xa5207.md index 7bb2be512a1..90e89e21925 100644 --- a/Documentation/guides/messages/xa5207.md +++ b/Documentation/guides/messages/xa5207.md @@ -17,9 +17,11 @@ In order to build a project, the Android SDK Platform matching the target API le ## Solution -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 +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 command from a terminal or command prompt: -`dotnet build -t:InstallAndroidDependencies -f net8.0-android -p:AndroidSdkDirectory=` +```dotnetcli +dotnet build -t:InstallAndroidDependencies -f net8.0-android "-p:AndroidSdkDirectory=" +``` Part of the new .net android system is when upgrading projects you will automatically be upgraded to the latest API level. For example net7.0-android allowed you to target API 33, @@ -31,8 +33,8 @@ target API level you will need to add the 'uses-sdk' `android:targetSdkVersion` android:versionCode="1" android:versionName="1.0" package="com.companyname.myapp"> - - + + ```