java - 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.
我不知道具体如何解决
解决方案
推荐阅读
- bash - 在 Bash 中提交/推送项目之前验证用户是否已将 SSH 密钥添加到 Git Profile
- angular - 异步等待不会等待
- android - 如何解决android studio中的错误“FAILURE:Build failed with an exception”?
- java - Spring验证:未调用方法参数约束
- python - 在 Python 中比较两个字符
- javascript - 如何在 ReactJS 中的 setState 调用期间有条件地从 javascript 对象中删除一个值?
- postgresql - 节省时间。时间在 golang 到带有时区字段的 postgres 时间戳
- python - 如何对数据框进行线性回归?
- javascript - HTML 和 Javascript:防止在表单中提交未填写的输入
- react-native - 如何从 React-Native 中的选择器中获取多个值?