blob: c11027e8bcb75ce6384e610389153bb425ba1190 [file] [log] [blame]
Jorge Betancourt265e3e12021-04-08 15:27:13 -04001AndroidKit is an AAR, or Android Library, that compiles Skia's native code,
2JNI bindings, and Java wrapper classes into a shared library.
3
4There are two ways to build the library.
5
61) Through Android Studio
7- Start a project by opening skia/platform_tools/android/apps with Android Studio.
8- Ensure that you're local.properties file is filled out with paths to your
9 Skia out directories. It should look like this:
10
11 sdk.dir=[sdk file path]
12 depot_tools.dir=[depot tools file path]
13 x86.out.dir=[out file for x86]
14 x64.out.dir=[out file for x64]
15 arm64.out.dir=[out file for xarm64]
16 arm.out.dir=[out file for arm]
17
18- Click on AndroidKit on the project tree, click Build in the toolbar, and select
19 " Make Module 'apps.androidkit' "
20- The AAR will be under the build/outputs/aar directory.
21
222) Through the terminal
23- Run: platform_tools/android/bin/android_build_app -C out/[out_dir] androidkit
24- If it builds with no errors, youll find the AAR in the out directory you were building from
25