Closed ckOfor closed 3 years ago
i have this issue
@tolu360
Add
<declare-styleable name="ForegroundView">
<attr name="foreground" format="color" />
<attr name="foregroundGravity" format="integer" />
<attr name="foregroundInsidePadding" format="boolean" />
</declare-styleable>
ass attribute in you to the android res/value in the library (node module)
Create an attrs.xml
file in the values directory (/android/app/src/res/values/attr.xml)
<declare-styleable name="ForegroundView">
<attr name="foreground" format="color" />
<attr name="foregroundGravity" format="integer" />
<attr name="foregroundInsidePadding" format="boolean" />
</declare-styleable>
I have this same issue. It suddenly started from no were this month. the /android/app/src/res/values/attr.xml file already existing and i even added a new attrs.xml file seeing your post and after building, i get the same error.
All the error points to - com.arttitude360.reactnative.rnpaystack
Nothing seems to work for me.
How can this be fixed please ?
Create an
attrs.xml
file in the values directory (/android/app/src/res/values/attr.xml)<declare-styleable name="ForegroundView"> <attr name="foreground" format="color" /> <attr name="foregroundGravity" format="integer" /> <attr name="foregroundInsidePadding" format="boolean" /> </declare-styleable>
Nothing seems to work for me even after following your directions.
What am i not doing right please ?
@okechukwu0127 i had this same issue for some weeks and the following hack I did fixed it.
1) Go to your node_modules
and look for react-native-paystack/android
folder
2) Open the build.gradle
file and change line 47 which contains widget for pinpad
from 1.0.1
to 1.0.3
Seems the widget old version is having compatibility issues.
the line looks like this ..
change from ...
implementation 'co.paystack.android.design.widget:pinpad:1.0.1'
to
implementation 'co.paystack.android.design.widget:pinpad:1.0.3'
VERSION
WHAT DID I DO
ERROR MESSAGE