0

I learned that Support library 26 supports use of emojis. But when I use the support library as follows:

compile "com.android.support:support-emoji:26.0.1"

I get this error:

enter image description here

and when I click Install Repository and sync project nothing happens. Does anyone know what is wrong?

tima
  • 1,498
  • 4
  • 20
  • 28
bei yin
  • 3
  • 1
  • Possible duplicate of [Failed to resolve: com.android.support:appcompat-v7:26.0.0](https://stackoverflow.com/questions/45357000/failed-to-resolve-com-android-supportappcompat-v726-0-0) – ישו אוהב אותך Aug 31 '17 at 04:59

1 Answers1

1

You need to add google repository like below in build.gradle file for your application to make it work:-

allprojects {
repositories {
    jcenter()
    maven {
        url "https://maven.google.com"
    }
  }
}

Also check below url for more info:-

https://developer.android.com/topic/libraries/support-library/setup.html

Shubhendra Singh
  • 456
  • 1
  • 6
  • 16