Skip to content

Commit

Permalink
Update xa5207.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpryor authored and dellis1972 committed Nov 30, 2023
1 parent 1206d01 commit d0d2811
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Documentation/guides/messages/xa5207.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<path to sdk directory>`
```dotnetcli
dotnet build -t:InstallAndroidDependencies -f net8.0-android "-p:AndroidSdkDirectory=<path to sdk directory>"
```

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,
Expand All @@ -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">
<uses-sdk android:targetSdkVersion="33">
<application android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" />
<uses-sdk android:targetSdkVersion="33">
<application android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" />
</manifest>
```

Expand Down

0 comments on commit d0d2811

Please sign in to comment.