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: docs/workflow/building/coreclr/android.md
+66-44Lines changed: 66 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,29 @@
1
1
# Experimental support of CoreCLR on Android
2
2
3
-
This is the internal documentation which outlines experimental support of CoreCLR on Android and includes instructions on how to:
4
-
-[Build CoreCLR for Android](./android.md#building-coreclr-for-android)
5
-
-[Build and run a sample application with CoreCLR](./android.md#building-and-running-a-sample-app)
6
-
-[Debug the sample app and the runtime](./android.md#debugging-the-runtime-and-the-sample-app)
7
-
8
-
## Prerequisite
9
-
10
-
- Download and install [OpenJDK 23](https://openjdk.org/projects/jdk/23/)
11
-
- Download and install [Android Studio](https://developer.android.com/studio/install) and the following:
12
-
- Android SDK (minimum supported API level is 21)
13
-
- Android NDK r27
14
-
15
-
> [!NOTE]
16
-
> Prerequisites can also be downloaded and installed manually:
17
-
> - by running the automated script as described in [Testing Libraries on Android](../../testing/libraries/testing-android.md#using-a-terminal)
18
-
> - by downloading the archives:
19
-
> - Android SDK - Download [command-line tools](https://developer.android.com/studio#command-line-tools-only) and use `sdkmanager` to download the SDK.
- Download and install [OpenJDK 23](https://openjdk.org/projects/jdk/23/)
46
+
- Download and install [Android Studio](https://developer.android.com/studio/install) and the following:
47
+
- Android SDK (minimum supported API level is 21)
48
+
- Android NDK r27c
49
+
50
+
> [!NOTE]
51
+
> Prerequisites can also be downloaded and installed manually:
52
+
> - An automated script as described in [Testing Libraries on Android](../../testing/libraries/testing-android.md#using-a-terminal)
53
+
> - Downloading the archives:
54
+
> - Android SDK - Download [command-line tools](https://developer.android.com/studio#command-line-tools-only) and use `sdkmanager` to download the SDK.
1. Install the Android SDK and NDK in WSL per the [prerequisites](#prerequisite). This can be done by downloading the archives or using Android Studio.
2. Install OpenJDK, Android SDK and Android NDK in as described in [Linux prerequisites](#prerequisites). There is a convenient automated script, but it can also be done manually by downloading the archives or using Android Studio.
69
91
- In case of Android Studio:
70
92
- Make sure WSL is updated: from Windows host, `wsl --update`
@@ -84,9 +112,7 @@ To build CoreCLR runtime, libraries and tools, run the following command from `<
84
112
85
113
## Building and running a sample app
86
114
87
-
To demonstrate building and running an Android sample application with CoreCLR, we will use:
88
-
- the [HelloAndroid sample app](../../../../src/mono/sample/Android/AndroidSampleApp.csproj).
89
-
- a functional tests [Android.Device_Emulator.JIT.Test](../../../../src/tests/FunctionalTests/Android/Device_Emulator/JIT/Android.Device_Emulator.JIT.Test.csproj)
115
+
To demonstrate building and running an Android application with CoreCLR, we will use the [HelloAndroid sample app](../../../../src/mono/sample/Android/AndroidSampleApp.csproj).
90
116
91
117
A prerequisite for building and running samples locally is to have CoreCLR successfully built for desired Android platform.
92
118
@@ -128,30 +154,24 @@ The app can be run on an emulator running on the Windows host.
128
154
2. In Windows, create and start an emulator
129
155
3. In WSL, swap the `adb` from the Android SDK in WSL2 with that from Windows
5. In WSL, run the `make` command as [above](#running-helloandroid-sample-on-an-emulator)
135
162
136
-
### Building and running functional tests on an emulator
163
+
## Building and running tests on an emulator
137
164
138
-
Similarly to the `HelloAndroid` sample, it is possible to build and run a functional test on Android with CoreCLR on an emulator.
165
+
To demonstrate building and running tests on CoreCLR Android, we will use the [Android.Device_Emulator.JIT.Test](../../../../src/tests/FunctionalTests/Android/Device_Emulator/JIT/Android.Device_Emulator.JIT.Test.csproj) test project.
139
166
140
-
To build and run a functional test on Android with CoreCLR, run the following command from `<repo_root>`:
167
+
To build and run the test on Android with CoreCLR, run the following command from `<repo_root>`:
0 commit comments