I have a rather weird problem, in my Android Studio's drawable project folder I have copied a .png material (from here https://design.google.com/icons/index.html#ic_settings_remote). I have named it connect.png
. In the activity main I am referencing it the following way:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/connect.png" />
With the last line, ofc. It spits out 2 errors:
Can't resolve resource "@android:drawable/connect.png"
Failed to convert "@android:@drawable/connect.png"
What I've tried to fix this out:
- restart the Android Studio
- recopy the material resource in drawable folder
- to go to Build->Clean project Neither of all those worked, I am looking forward to your answers.