First, we need your build.gradle
Second, i can make a guess from what you have posted till now.
- Check your build.gradle for unused or missing projects in your project
directory by checking dependencies area
as i can understand from "error listing versions of
com.android.support:support-v4 using class
will attempt an alternate way to list versions. This behaviour has been
deprecated and is scheduled to be removed in gradle 2.0"
this.It may be related to repositories.
Check whether you have this or not in dependencies area. If something
else is written there, remove it and add the correct one that i wrote
- and my another guess is, there is something wrong in your support-v4
check whether you have
this or not. If not , add the line starts with compile that i wrote
If you have something like,
remove that line.