当尝试在我的应用程序中实现 Cardslib
库时,每次我尝试运行该应用程序时都会遇到此错误:
ERROR: In ForegroundLinearLayout, unable to find attribute android:foregroundInsidePadding
但是,在查看库的 attrs.xml
文件后,我找到了 ForegroundLinearLayout
并且该属性就在那里。知道是什么原因造成的吗?
最佳答案
这个问题来自升级构建工具的要求,正如所提到的here .
在我的例子中,我所需要的只是在 build.gradle
中进行更改。
...
compileSdkVersion 23
buildToolsVersion "21.1.2"
...
到
...
compileSdkVersion 23
buildToolsVersion "22.0.1"
...
如果您使用的是 Android Studio 并且您没有安装最新的构建工具,系统将提示您使用可以自动安装它的向导。
关于android - 尝试使用 Cardslib 库时出错 : unable to find attribute android:foregroundInsidePadding,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31548390/