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: articles/azure-maps/quick-android-map.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,16 @@ The next step in building your application is to install the Azure Maps Android
120
120
121
121
:::image type="content" source="./media/quick-android-map/project-settings-file.png" alt-text="A screenshot of the project settings file in Android Studio.":::
122
122
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:
124
133
125
134
1. Verify your project's **minSdk** is **21** or higher.
126
135
@@ -143,7 +152,7 @@ The next step in building your application is to install the Azure Maps Android
143
152
144
153
:::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.":::
145
154
146
-
4. Add a map fragment to the main activity:
155
+
5. Add a map fragment to the main activity:
147
156
148
157
```xml
149
158
<com.azure.android.maps.control.MapControl
@@ -159,7 +168,7 @@ The next step in building your application is to install the Azure Maps Android
159
168
160
169
::: zone pivot="programming-language-java-android"
161
170
162
-
5. In the **MainActivity.java** file you'll need to:
171
+
6. In the **MainActivity.java** file you'll need to:
163
172
164
173
* Add imports for the Azure Maps SDK.
165
174
* Set your Azure Maps authentication information.
@@ -267,7 +276,7 @@ The next step in building your application is to install the Azure Maps Android
267
276
268
277
::: zone pivot="programming-language-kotlin"
269
278
270
-
5. In the **MainActivity.kt** file you'll need to:
279
+
7. In the **MainActivity.kt** file you'll need to:
271
280
272
281
* add imports for the Azure Maps SDK
273
282
* set your Azure Maps authentication information
@@ -373,7 +382,7 @@ The next step in building your application is to install the Azure Maps Android
373
382
374
383
::: zone-end
375
384
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.
377
386
378
387
:::image type="content" source="media/quick-android-map/run-app.png" alt-text="A screenshot showing the run button in Android Studio.":::
0 commit comments