Skip to content

Commit 0689f58

Browse files
authored
add step to enable android.enableJetifier=true
1 parent e86caf0 commit 0689f58

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

articles/azure-maps/quick-android-map.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,16 @@ The next step in building your application is to install the Azure Maps Android
120120
121121
:::image type="content" source="./media/quick-android-map/project-settings-file.png" alt-text="A screenshot of the project settings file in Android Studio.":::
122122
123-
3. Open the application **build.gradle** file and do the following:
123+
3. Open the project's **gradle.properties** file, verify that `android.enableJetifier` is set to `true`:
124+
125+
If the **gradle.properties** does not include `android.enableJetifier`, add the next line to the end of the file:
126+
127+
```gradle
128+
android.enableJetifier=true
129+
```
130+
131+
132+
4. Open the application **build.gradle** file and do the following:
124133

125134
1. Verify your project's **minSdk** is **21** or higher.
126135

@@ -143,7 +152,7 @@ The next step in building your application is to install the Azure Maps Android
143152
144153
:::image type="content" source="./media/quick-android-map/build-gradle-file.png" alt-text="A screenshot showing the application build dot gradle file in Android Studio.":::
145154
146-
4. Add a map fragment to the main activity:
155+
5. Add a map fragment to the main activity:
147156
148157
```xml
149158
<com.azure.android.maps.control.MapControl
@@ -159,7 +168,7 @@ The next step in building your application is to install the Azure Maps Android
159168
160169
::: zone pivot="programming-language-java-android"
161170
162-
5. In the **MainActivity.java** file you'll need to:
171+
6. In the **MainActivity.java** file you'll need to:
163172
164173
* Add imports for the Azure Maps SDK.
165174
* Set your Azure Maps authentication information.
@@ -267,7 +276,7 @@ The next step in building your application is to install the Azure Maps Android
267276
268277
::: zone pivot="programming-language-kotlin"
269278
270-
5. In the **MainActivity.kt** file you'll need to:
279+
7. In the **MainActivity.kt** file you'll need to:
271280
272281
* add imports for the Azure Maps SDK
273282
* set your Azure Maps authentication information
@@ -373,7 +382,7 @@ The next step in building your application is to install the Azure Maps Android
373382
374383
::: zone-end
375384
376-
6. Select the run button from the toolbar, as shown in the following image (or press `Control` + `R` on a Mac), to build your application.
385+
8. Select the run button from the toolbar, as shown in the following image (or press `Control` + `R` on a Mac), to build your application.
377386
378387
:::image type="content" source="media/quick-android-map/run-app.png" alt-text="A screenshot showing the run button in Android Studio.":::
379388

0 commit comments

Comments
 (0)