bei yin
bei yin

Reputation: 3

The support library of Emoji Compatibility can't use in Android Studio

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?

Upvotes: 0

Views: 402

Answers (1)

Shubhendra Singh
Shubhendra Singh

Reputation: 456

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

Upvotes: 1

Related Questions