Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

AAPT: error: attribute android:raidus not found

picture of error with my code

Hello, I’m trying to create a button with rounded edges, so I set the radius to 22dp, but when I ran it it gave me this error: ERROR:C:\Users\home\AndroidStudioProjects\music\app\src\main\res\drawable\btn_bg.xml:9: AAPT: error: attribute android:raidus not found.

Please advise.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

your shape attribute android:shape="rectangle" is out side of the shape use it like below

<shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle">

      <solid android:color="@color/white" />
      <corners android:radius="22dp" />
</shape>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading