Skip to content

Commit f9843c5

Browse files
authored
docs: Update setup instructions in README for current Android Studio (#1198)
1 parent 2bf4351 commit f9843c5

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

README.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,39 @@ The Parse Android SDK has the following Android API and [Gradle Plugin][gradle-p
4545

4646
## Add Dependency
4747

48-
Add this in your root `build.gradle` file (**not** your module `build.gradle` file):
48+
Add the line `maven { url 'https://www.jitpack.io' }` to your `settings.gradle` file, inside the `repositories` property, for example:
4949

5050
```gradle
51-
allprojects {
51+
dependencyResolutionManagement {
5252
repositories {
53-
...
54-
maven { url "https://jitpack.io" }
53+
maven { url 'https://www.jitpack.io' }
5554
}
5655
}
5756
```
5857

59-
Then, add the library to your project `build.gradle`
58+
Older versions of Android studio require different steps. See the following list of Android Studio versions for alternative instructions. You can find the version of your Android Studio installation by clicking on *Help > About* in the top menu.
59+
60+
<details>
61+
<summary>Arctic Fox | 2020.3.1 or older</summary>
62+
<br>
63+
64+
>
65+
> Add this in your root `build.gradle` file, **not** your module `build.gradle` file:
66+
>
67+
> ```gradle
68+
> allprojects {
69+
> repositories {
70+
> ...
71+
> maven { url "https://jitpack.io" }
72+
> }
73+
> }
74+
> ```
75+
>
76+
> Then, add the library to your project `build.gradle` file.
77+
78+
</details>
79+
80+
Then, add the library to your (module:app) `build.gradle` file, replacing `latest.version.here` with the version of the Parse Android SDK you would like to use. We commend always updating your app to use the [latest release](https://github.com/parse-community/Parse-SDK-Android/releases) version.
6081
6182
```gradle
6283
ext {
@@ -81,8 +102,6 @@ dependencies {
81102
}
82103
```
83104
84-
replacing `latest.version.here` with the latest released version (see JitPack badge above).
85-
86105
## Setup
87106

88107
Initialize Parse in a custom class that extends `Application`:

0 commit comments

Comments
 (0)