6

Regards to https://android-developers.googleblog.com/2017/11/google-play-referrer-api-track-and.html

Play Install Referrer Library 1.0 now available

To make it easy to integrate the Install Referrer API, we've released the Install Referrer Library 1.0 for Android. The library is available in our Maven repository. To start using it, add the following dependency to your app module build.gradle file:

dependencies {
      ...
      compile 'com.android.installreferrer:installreferrer:1.0'
  }

However it gives me error:

Failed to resolve: com.android.installreferrer:installreferrer:1.0

Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225
  • 2
    @IntelliJAmiya yes I know, I have no problem to make it duplicate but it will give quick response to this question in Google search :) – Maxim Shoustin Nov 22 '17 at 08:41

1 Answers1

5

Be sure you have added google() in your project root, a.e.:

allprojects {
    repositories {
        google()

        // If you're using a version of Gradle lower than 4.1, you must
        // instead use:
        // maven {
        //     url 'https://maven.google.com'
        // }
    } }

It's not mentioned in their DOCs

Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225