gabrielemariotti / cardslib

Android Library to build a UI Card
4.66k stars 1.19k forks source link

i can install that from gradle #489

Open pishguy opened 9 years ago

pishguy commented 9 years ago

Hi all. i'm trying to install this library from gradle but i get this error:

Error:In ForegroundLinearLayout, unable to find attribute android:foregroundInsidePadding Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command: /home/mahdi/Desktop/Programs/SDK/android-sdk-linux_new/build-tools/21.1.2/aapt package -f --no-crunch -I /home/mahdi/Desktop/Programs/SDK/android-sdk-linuxnew/platforms/android-22/android.jar -M /home/mahdi/Projects/MakuMarket/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /home/mahdi/Projects/MakuMarket/app/build/intermediates/res/debug -A /home/mahdi/Projects/MakuMarket/app/build/intermediates/assets/debug -m -J /home/mahdi/Projects/MakuMarket/app/build/generated/source/r/debug -F /home/mahdi/Projects/MakuMarket/app/build/intermediates/res/resources-debug.ap --debug-mode --custom-package ir.pishguy.makumarket.app -0 apk --output-text-symbols /home/mahdi/Projects/MakuMarket/app/build/intermediates/symbols/debug Error Code: 1 Output: ERROR: In ForegroundLinearLayout, unable to find attribute android:foregroundInsidePadding

marekyggdrasil commented 8 years ago

I had the same issue:

ERROR: In <declare-styleable> ForegroundLinearLayout, unable to find attribute android:foregroundInsidePadding
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/username/adt-bundle-linux-x86-20131030/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 1

What helped was this fix. I switched to build tools v. 22.0.1 and it resolved the issue.