paystack-android icon indicating copy to clipboard operation
paystack-android copied to clipboard

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

Open tjohnn opened this issue 5 years ago • 2 comments

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"/>

tjohnn avatar Apr 09 '20 18:04 tjohnn

Same issue, please need a fix.

rshibley avatar Apr 11 '20 19:04 rshibley

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.

ismailnurudeen avatar Dec 26 '20 06:12 ismailnurudeen

Closing this because it's had no activity for years

michael-paystack avatar Apr 20 '23 07:04 michael-paystack