Couldn't resolve resource @id/visible
when using TextInputLayout
on appcompat-v7:25.x.x
Tried these steps below, but the problem is still persist:
- Rebuild Project
- Clean and Rebuild Project
- Clear Cache and Restart Android Studio
Below is the code in the layout file.
<android.support.design.widget.TextInputLayout
android:id="@+id/tilFirstName"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TextInputEditText
android:id="@+id/etFirstName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/first_name"
android:inputType="textPersonName"/>
</android.support.design.widget.TextInputLayout>
Below is the message displayed in Android Studio
Rendering Problems.
Couldn't resolve resource
@id/visible
Tip: Try to refresh the layout.
NOTE: @id/visible
is not present in the code.
This nags one with the Rendering Problems window
How to fix: add these values to any values file (the filename doesn't appear to matter, I use
ids.xml
, you can use an existing one as well, such ascolors.xml
orstrings.xml
)