首页 > 解决方案 > Android 资源链接失败。它拒绝建造

问题描述

<declare-styleable name="ForegroundView">
    <attr name="android:foreground"/>
    <attr name="android:foregroundInsidePadding"/>
    <attr name="android:foregroundGravity"/>
</declare-styleable>
<declare-styleable name="PinPadView">
    <attr format="boolean" name="place_digits_randomly"/>
    <attr format="boolean" name="auto_submit"/>
    <attr format="boolean" name="vibrate_on_incomplete_submit"/>
    <attr format="color" name="pin_indicator_filled_color"/>
    <attr format="color" name="pin_indicator_empty_color"/>
    <attr format="dimension" name="pin_indicator_size"/>
    <attr format="dimension" name="pin_indicator_stroke_width"/>
    <attr format="dimension" name="pin_indicator_spacing"/>
    <attr format="integer" name="pin_length"/>
    <attr format="string" name="prompt_text"/>
    <attr format="color" name="prompt_textcolor"/>
    <attr format="dimension" name="prompt_textsize"/>
    <attr format="dimension" name="prompt_text_padding"/>
    <attr format="dimension" name="prompt_text_paddingTop"/>
    <attr format="dimension" name="prompt_text_paddingBottom"/>
    <attr format="color" name="button_textcolor"/>
    <attr format="dimension" name="button_numeric_textsize"/>
    <attr format="dimension" name="button_alpha_textsize"/>
    <attr format="string" name="button_text_numeric"/>
    <attr format="string" name="button_text_alpha"/>
    <attr format="reference" name="button_drawable"/>
    <attr format="dimension" name="button_drawable_size"/>
</declare-styleable>    

这是显示的构建错误,上面的代码片段是错误链接到的位置

这就是错误所说的

/home/sylar/.gradle/caches/transforms-2/files-2.1/a07e4dae01600506a3ec419e8d952eb7/jetified-pinpad-1.2/res/values/values.xml:7:5-185:
AAPT: error: resource android:attr/foregroundInsidePadding is private.

我不知道具体如何解决

标签: javaandroidxml

解决方案


推荐阅读