Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No resource identifier found for attribute 'alpha' in package 'android.support.design'

Tags:

android

I created a library project from

android-sdk\extras\android\m2repository\com\android\support\design\design-25.0.1.aar

I added appcompat, recyclerview and cardview libraries.

There is an error message:

design_25.0.1\res\color\design_tint_password_toggle.xml:19: error: No resource identifier found for attribute 'alpha' in package 'android.support.design'

This is the code of design_tint_password_toggle.xml

<selector xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto">
    <item android:state_checked="true" android:color="?android:attr/colorForeground" app:alpha="0.54"/>
    <item android:color="?android:attr/colorForeground" app:alpha="0.38"/>
</selector>

How can I fix this error?

like image 797
activity Avatar asked Oct 29 '22 14:10

activity


1 Answers

Its work for me.

Change here:-

xmlns:app="http://schemas.android.com/apk/res-auto">

to

xmlns:app="http://schemas.android.com/apk/lib-auto">

like image 174
DILSHAD AHMAD Avatar answered Nov 15 '22 07:11

DILSHAD AHMAD