Reputation: 1070
Used to use ListViewCompat
as a replacement for ListView
but after updating gradle apis it is nowhere to be found; can't even find it in the Android docs.
All I can find is a reference to android.support.v4.widget.ListViewCompat
which is a completely different object.
Where did android.support.v7.widget.ListViewCompat
go?
Upvotes: 2
Views: 809
Reputation: 125
ListViewCompat is an internal appcompat class,Replace references with android.widget.ListView
Change XML tag "android.support.v7.widget.ListViewCompat" to "android.widget.ListView" It worked for me.
Upvotes: 0
Reputation: 131
I have the same problem. Found solution here: Failed resolution of: Landroid/support/v7/widget/ListViewCompat;
" ListViewCompat was an internal appcompat class, don't use it. Replace references with android.widget.ListView. – Eugen Pechanec May 17 at 22:33 "
So, I just changed XML tag "android.support.v7.widget.ListViewCompat" to "android.widget.ListView" and it worked normally.
Upvotes: 2