Emoji兼容性支持库不能在Android Studio中使用

问题描述:

我了解到支持库26支持使用emojis。但是,当我使用支持库如下:Emoji兼容性支持库不能在Android Studio中使用

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

我得到这个错误:

enter image description here

,当我点击Install Repository and sync project没有任何反应。有谁知道什么是错的?

+0

可能的重复[无法解决:com.android.support:appcompat-v7:26.0.0](https://stackoverflow.com/questions/45357000/failed-to-resolve-com-android-supportappcompat-v726-0 -0) –

您需要在的build.gradle文件中添加谷歌储存库像下面为您的应用程序,使其工作: -

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

还要检查以下网址获取更多信息: -

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

+0

It works.Thanks –