简体   繁体   中英

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:

在此处输入图片说明

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM