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
If you downloaded Android Studio, extract it and then see [Setting up Android Studio](#setting-up-android-studio).
9
+
If you downloaded Android Studio, install it with the default options and open the project located in `dolphin/Source/Android`
15
10
16
-
If you instead chose to download the commoand-line SDK tools, see [Setting up the SDK Tools](#setting-up-the-sdk-tools).
11
+
## Setting Up Android Studio
17
12
18
-
## Setting up Android Studio
19
-
20
-
1. Launch Android Studio, which will start a first-launch wizard.
21
-
2. Choose a custom installation.
22
-
3. If offered a choice of themes, select your preference.
23
-
4. When offered a choice of components, uncheck the "Android Virtual Device" option. ![Android Studio Components][components]
24
-
5. Accept all licenses, and click Finish. Android Studio will download the SDK Tools package automatically. (Ubuntu users, if you get an error running the `mksdcard` tool, make sure the `lib32stdc++6` package is installed.)
25
-
6. At the Android Studio welcome screen, click "Configure", then "SDK Manager".
26
-
7. Use the SDK Manager to get necessary dependencies, as described in [Getting Dependencies](#getting-dependencies).
27
-
8. When done, follow the steps in [Readme.md](Readme.md#installation-on-android) to compile and deploy the application.
28
-
29
-
## Setting up the SDK Tools
30
-
31
-
1. In `Source/Android`, create a file called `local.properties`.
32
-
2. Add a single line: `sdk.dir=<sdk-path>`, where `<sdk-path>` is the path where you extracted the SDK Tools package.
33
-
3. Follow the steps in [Readme.md](Readme.md#installation-on-android) to compile and deploy the application.
34
-
35
-
## Executing Gradle Tasks
36
-
37
-
In Android Studio, you can find a list of possible Gradle tasks in a tray at the top right of the screen:
38
-
39
-
![Gradle Tasks][gradle]
40
-
41
-
Double clicking any of these tasks will execute it, and also add it to a short list in the main toolbar:
42
-
43
-
![Gradle Task Shortcuts][shortcut]
44
-
45
-
Clicking the green triangle next to this list will execute the currently selected task.
46
-
47
-
For command-line users, any task may be executed with `Source/Android/gradlew <task-name>`.
48
-
49
-
## Getting Dependencies
50
-
51
-
Most dependencies for the Android project are supplied by Gradle automatically. However, Android platform libraries (and a few Google-supplied supplementary libraries) must be downloaded through the Android package manager.
52
-
53
-
1. Launch the Android SDK Manager from the commandline by executing `<sdk-path>/tools/android`, or by clicking on its icon in Android Studio's main toolbar:
13
+
1. Wait for background tasks to complete on the bottom of the window.
14
+
2. Launch the Android SDK Manager by clicking on its icon in Android Studio's main toolbar:
54
15
![Android Studio Package Icon][package-icon]
55
-
2. At the bottom of the window, click "Deselect All", and then "Updates".
56
-
3. Install or update the following packages:
16
+
3. Install or update the SDK Platform. Choose the API level as defined in the app module's [build.gradle](Source/Android/app/build.gradle#L7) file.
17
+
4. Install a CMake version as defined in the app module's [build.gradle](Source/Android/app/build.gradle#L99) file. The option won't appear until you select `Show Package Details`.
18
+
5. Select `Build Variants` on the left side of the window to choose the build variant and ABI you would like to compile for the `:app` module.
19
+
6. Select the green hammer icon in the main toolbar to build and create the apk in `Source/Android/app/build/outputs/apk`
57
20
58
-
* SDK Platform, under "Android 5.0.1 (API 21)". This will allow compiling apps that target Lollipop.
59
-
* Android Support Repository
60
-
* Android Support Library
61
-
* Google Repository
21
+
## Compiling from the Command-Line
62
22
63
-
In the future, if the project targets a newer version of Android, or use newer versions of the tools/build-tools packages, it will be necessary to use this tool to download updates.
23
+
For command-line users, any task may be executed with `cd Source/Android` followed by `gradlew <task-name>`. In particular, `gradlew assemble` builds debug and release versions of the application (which are placed in `Source/Android/app/build/outputs/apk`).
0 commit comments