AAPT: error: ‘null‘ is incompatible with attribute button (attr) reference.

Problem description

When using radio button, I want to cancel the small circle he brought with me. Use the following code

 android:button="null"

It’s just an error caused by the @ sign in front of null. According to the error message, you can see error: “null”   I haven’t found any other bloggers for a long time. This family is all caused by font size or color. At the beginning, they thought that their error message was null, and no one made such a small mistake for an hour  

AAPT: error: 'null' is incompatible with attribute button (attr) reference.

Solution:

Note that the correct code is here·········

 android:button="@null"

 


Read More: