-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library seems not to work with Android Studio 3 preview #564
Comments
Good afternoon. I have this problem as well, looking thru the Internet people suggested a workaround that worked. cardslib error resource android:attr/foregroundInsidePadding is private while targeting SDK 26 From the contributor that suggested the solution
|
I have Same problem.
.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.0.aar/0587eeae883e3b2b6fdee97d0b2dd9e3/res/values/values.xml .../android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml |
enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option. There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99 |
Hello @ajburley, I'm new to GIT. How can I add oplarshad's fork of cardslib to my Android Studio project? Thank you! |
Hello bluish5, Did you finally find a solution for adding oplarshad's fork of cardslib to your Android Studio project? Thank you ! |
No, I downgraded to a previous version of Android Studio... |
I just manually applied the diffs from that patch to my local copy of vanilla cardslib. The changes are to fix the compiler errors which you get with AAPT2. This will allow the project to build with AAPT2. Also, not all the changes from that commit are even required. Lots of the changes are actually to remove redundant code, which is a good thing, but not essential for this task of making it work with AAPT2. Changed files where the changes are NOT only to remove redundant code are:
The key changes are Personally, I tried downgrading Android Studio to 3.0.x, but it didn't work, because on first launch it still downloaded the latest version of the SDK. It is the SDK, and not Android Studio itself, that enforce the AAPT2 usage. So that's why I had to change the code to get it working with AAPT2, and that's where oplarshad's code came in handy. |
Good morning,
putting the dependencies lines on gradle, give me the following error
resource android:attr/foregroundInsidePadding is private
. Isn't the library compatible with AS 3.0 preview?The text was updated successfully, but these errors were encountered: