PaystackHQ / paystack-android

Paystack SDK for Android. Accept payments on Android
Apache License 2.0
126 stars 101 forks source link

AAPT: error: attribute auto_submit (aka my.package.name:auto_submit) not found. #99

Closed tjohnn closed 1 year ago

tjohnn commented 4 years ago

Problem/Motivation

Project build always fail after upgrading my android gradle plugin version to 4.1.0 with the following error message, the project requires that I use this due to some technical needs

AAPT: error: attribute auto_submit (aka my.package.name:auto_submit) not found.

Proposed resolution

All I know is that the issues have to do with all the PinPadView's declared-styleables

Repeatable

Always

Steps to repeat: (Describe how the issue can be repeated by someone who is to work on it)

  1. Use android studio 4.1+ canary
  2. Upgrade to gradle plugin 4.1+
  3. Attempt to build the project

Expected Results:

Build fails with message

/Users/Tjohn/.gradle/caches/transforms-2/files-2.1/9653adae216f918a10ec57da3c113e5f/jetified-paystack-3.0.14/res/layout/co_paystack_android____activity_otp.xml:16: AAPT: error: attribute auto_submit (aka xx.xxx.xxx:auto_submit) not found.

The error message comes for all the attributes used by the paystack library in this xml code, Apparently all the PinPadView attributes

<co.paystack.android.design.widget.PinPadView
        android:id="@+id/pinpadView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="3"
        android:background="#292929"
        app:auto_submit="false"
        app:button_alpha_textsize="0sp"
        app:button_drawable_size="24dp"
        app:button_numeric_textsize="15sp"
        app:pin_indicator_stroke_width="0dp"
        app:pin_length="10"
        app:place_digits_randomly="false"
        app:prompt_text="Please enter OTP"
        app:prompt_textsize="13sp"
        app:vibrate_on_incomplete_submit="false"/>
rshibley commented 4 years ago

Same issue, please need a fix.

ismailnurudeen commented 3 years ago

You probably have tried clearing the gradle cache and rebuilding but if you haven't please do. The error seems to be coming from the cached gradle files before gradle upgrade.

michael-paystack commented 1 year ago

Closing this because it's had no activity for years