尝试Cardslib
在我的应用程序中实现该库时,每次尝试运行该应用程序时都会出现此错误:
错误:在 ForegroundLinearLayout 中,找不到属性 android:foregroundInsidePadding
但是,在查看attrs.xml
该库的文件时,我发现了ForegroundLinearLayout
该属性。知道可能是什么原因造成的吗?
尝试Cardslib
在我的应用程序中实现该库时,每次尝试运行该应用程序时都会出现此错误:
错误:在 ForegroundLinearLayout 中,找不到属性 android:foregroundInsidePadding
但是,在查看attrs.xml
该库的文件时,我发现了ForegroundLinearLayout
该属性。知道可能是什么原因造成的吗?
这个问题来自升级构建工具的需求,就像这里提到的一样。
就我而言,我所需要的只是改变build.gradle
。
...
compileSdkVersion 23
buildToolsVersion "21.1.2"
...
至
...
compileSdkVersion 23
buildToolsVersion "22.0.1"
...
如果您使用的是 Android Studio 并且没有安装最新的构建工具,系统会提示您使用可以自动安装它的向导。