Okay, I have created a completely new project in Android Studio 3.0. Gradle build works fine in this newly instantiated project, until I insert the following lines in my module's build.gradle
dependencies {
...
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.1.0'
compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.1.0'
compile 'com.github.gabrielemariotti.cards:cardslib-recyclerview:2.1.0'
}
Here is the error I get in the Build log
/home/sparker0i/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.0.1.aar/e06e09188fb79d4d895b39247477d1c1/res/values/values.xml
Error:(246, 5) resource android:attr/foregroundInsidePadding is private
When I double click on it, I get a values.xml
file (merged one), where the pointer is at
<dimen name="abc_action_bar_content_inset_material">16dp</dimen>
My minimum SDK version is 16, target SDK is 26. I am using Android Studio 3.0 Beta 2, build tools version is 26.0.1. Gradle plugin 3.0.0-beta2.
I bet this is because of a slightly outdated Cardslib library. Is there no way to fix this? (Removing those lines from dependencies works fine)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…