From f9843c5cd0ad46c30fa2be26d740f124bc1e0159 Mon Sep 17 00:00:00 2001 From: Edgar Wideman <70231165+edgarwideman@users.noreply.github.com> Date: Wed, 24 May 2023 21:01:09 -0400 Subject: [PATCH] docs: Update setup instructions in README for current Android Studio (#1198) --- README.md | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 057943729..f52658cbc 100644 --- a/README.md +++ b/README.md @@ -45,18 +45,39 @@ The Parse Android SDK has the following Android API and [Gradle Plugin][gradle-p ## Add Dependency -Add this in your root `build.gradle` file (**not** your module `build.gradle` file): +Add the line `maven { url 'https://www.jitpack.io' }` to your `settings.gradle` file, inside the `repositories` property, for example: ```gradle -allprojects { +dependencyResolutionManagement { repositories { - ... - maven { url "https://jitpack.io" } + maven { url 'https://www.jitpack.io' } } } ``` -Then, add the library to your project `build.gradle` +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. + +
+ Arctic Fox | 2020.3.1 or older +
+ + > + > Add this in your root `build.gradle` file, **not** your module `build.gradle` file: + > + > ```gradle + > allprojects { + > repositories { + > ... + > maven { url "https://jitpack.io" } + > } + > } + > ``` + > + > Then, add the library to your project `build.gradle` file. + +
+ +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. ```gradle ext { @@ -81,8 +102,6 @@ dependencies { } ``` -replacing `latest.version.here` with the latest released version (see JitPack badge above). - ## Setup Initialize Parse in a custom class that extends `Application`: