Skip to content

Commit b52a8c3

Browse files
docs(android): clarify steps to set up native project and run with Capacitor (#1889)
Co-authored-by: Shawn Taylor <[email protected]>
1 parent b6dd83a commit b52a8c3

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docs/developing/android.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ If you are using any version of **`cordova-android`** below `10.0.0`, install th
125125

126126
Before apps can be deployed to Android simulators and devices, the native project must be configured.
127127

128-
1. **Generate the native project, if it does not already exist.**
128+
1. **Perform an Ionic build, if you haven't already.**
129+
130+
```
131+
$ ionic build
132+
```
133+
134+
2. **Generate the native project, if it does not already exist.**
129135

130136
For Capacitor, run the following:
131137

@@ -139,7 +145,7 @@ Before apps can be deployed to Android simulators and devices, the native projec
139145
$ ionic cordova prepare android
140146
```
141147

142-
2. **Set the [Package ID](../reference/glossary.md#package-id).**
148+
3. **Set the [Package ID](../reference/glossary.md#package-id).**
143149

144150
For Capacitor, open the `capacitor.config.json` file and modify the `appId` property.
145151

@@ -157,9 +163,17 @@ Capacitor uses Android Studio to build and run apps to simulators and devices.
157163
$ ionic capacitor copy android
158164
```
159165

160-
2. **In Android Studio, click the Run button and then select the target simulator or device.**
166+
2. **Run the app on a simulator or device.**
167+
168+
You can open the Android Studio Project using:
169+
170+
```shell
171+
$ ionic capacitor open android
172+
```
173+
174+
In Android Studio, click the Run button and then select the target simulator or device.
161175

162-
![Android Studio Run Button Area](/img/running/android-studio-run-button-area.png)
176+
![Android Studio Run Button Area](/img/running/android-studio-run-button-area.png)
163177

164178
### Live reload
165179

0 commit comments

Comments
 (0)