Skip to content
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

Compiling errors #33

Closed
contactolaolu44real opened this issue Nov 15, 2017 · 26 comments
Closed

Compiling errors #33

contactolaolu44real opened this issue Nov 15, 2017 · 26 comments

Comments

@contactolaolu44real
Copy link

I am presently having five error integrating the dependency. Number one is this and what is the solution
Error:In ForegroundView, unable to find attribute foreground

@ibrahimlawal
Copy link
Contributor

Hey @contactolaolu44real what version of Android Studio are you using?

Also please be sure to enable AAPT2

@contactolaolu44real
Copy link
Author

I use version 3.0 and sure to have enabled AAPT 2

@ibrahimlawal
Copy link
Contributor

Weird then. Please confirm you are also using the most recent build of our SDK (v3.0.9). If this fails, try v3.0.7

@contactolaolu44real
Copy link
Author

Not sure of AAPT2. Give direction on how to enable my AAPT2

@ibrahimlawal
Copy link
Contributor

In your gradle.properties file, please add the following line:

android.enableAapt2=true

@contactolaolu44real
Copy link
Author

Ohh...thanks. Will now
Will get back

@contactolaolu44real
Copy link
Author

i used sdk version 3.0.9 and the error continued

@ibrahimlawal
Copy link
Contributor

Weird, you may need to restart your IDE (and/or clear your cache):

https://stackoverflow.com/questions/23025433/how-to-clear-gradle-cache

@contactolaolu44real
Copy link
Author

Thanks....it has worked perfectly after effecting the changes

@ibrahimlawal
Copy link
Contributor

Glad to be of assistance. Thank you for choosing Paystack!

@contactolaolu44real
Copy link
Author

Please sir, what about cardinal look up failed exception

@ibrahimlawal
Copy link
Contributor

@contactolaolu44real sounds like you were attempting payment with an invalid card in live mode.

@contactolaolu44real
Copy link
Author

Thanks sir. Got the solution already. Was using live mode key for test cards details. Always grateful sir.

@aligorithm
Copy link

I have this same issue. I have tried the solutions and the issue still persists

@sagaya
Copy link

sagaya commented Apr 12, 2018

I also have this same issue i am using v(3.0.9) of the SDK

android studio 2.3.1
gradle plugin 2.3.1
build tools 27.0.3

@jogboms
Copy link

jogboms commented Apr 12, 2018

@aligorithm @sagaya
Create an attrs.xml file in the values directory

<declare-styleable name="ForegroundView">
    <attr name="foreground" format="color" />
    <attr name="foregroundGravity" format="integer" />
    <attr name="foregroundInsidePadding" format="boolean" />
</declare-styleable>

@aligorithm
Copy link

I have done that @jogboms and I still get the

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

error

@aligorithm
Copy link

I have gotten rid of the error. I upgraded to the latest android studio and gradle, then updated all dependencies and installed the Paystack library.

@contactolaolu44real
Copy link
Author

contactolaolu44real commented Apr 26, 2018 via email

@ebukaprof
Copy link

Please i need help. I still see this error upgrading to paystack SDK 3.0.9. Even in 3.0.7.
Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

@sirsheyi
Copy link

Glad to be of assistance. Thank you for choosing Paystack!

Anyway one can solve the issue without having to upgrade Android studio?

@AdelekunAyoDeji
Copy link

AdelekunAyoDeji commented Mar 14, 2019

Why did paystack fix minimumSdk at api16, its not good at all, while we are trying to satisfy users with android 4.0 and above. Google console minimum api presently is api 14.

@TheErondu
Copy link

@aligorithm @sagaya
Create an attrs.xml file in the values directory

<declare-styleable name="ForegroundView">
    <attr name="foreground" format="color" />
    <attr name="foregroundGravity" format="integer" />
    <attr name="foregroundInsidePadding" format="boolean" />
</declare-styleable>

this worked for me just now! thanks a lot

@Adebanji29
Copy link

AAPT: error: resource attr/foregroundGravity (aka com.stephen.CitiStackApp:attr/foregroundGravity) not found.
having this same error tried all the solutions above but still didnt work

@michael-paystack
Copy link
Member

@Adebanji29 What version of the library are you using?

@peterchibunna
Copy link

peterchibunna commented Jan 28, 2021

I've included the attrs.xml file, and I'm still getting the errors above. I'm using gradle 6.2.
Edit: I upgrade to latest gradle at this time (6.8) and the error is still present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests