'how to add 'https://jitpack.io library to android studio version bumble bee?

In last versions of android studio we can simply add the library https://jitpack.io to the gradle file (module project) easily but in the newest update (android-studio-bumble-bee), the structure of this file has been changed and I don't know how to add this library.



Solution 1:[1]

This is my working build.gradle with jitpack.io:

buildscript {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://maven.google.com' }
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://www.jitpack.io' }
    }
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mario Huizinga