发现在包“机器人”

发现在包“机器人”

问题描述:

属性“字体”无资源标识符我使用Font Binder库,但我得到这个错误,当我编译发现在包“机器人”

C:\Users\Gonzalo\AndroidStudioProjects\firebase\app\build\intermediates\data-binding-layout-out\debug\layout\fragment_edit_name.xml 

Error:(19) No resource identifier found for attribute 'font' in package 'android' 

我设置数据绑定在我的gradle这个

dataBinding { 
     enabled true 
    } 

我添加库

compile 'com.github.nitrico.fontbinder:fontbinder:1.0.3' 

,这是我的XML

<TextView 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:textAppearance="?android:attr/textAppearanceMedium" 
       android:text="Fecha" 
       android:font='@{"avquest"}' 
       android:id="@+id/textView"/> 

的字体是

\app\src\main\assets\fonts 

感谢您的帮助!

这里解决在GitHub库与业主

https://github.com/nitrico/FontBinder/issues/2

+0

最好是加入一个链接时,包括解决方案的一个简短的回答说话。该链接可能会在任何时候过期,例如删除回购时。 – Abbas