Often the problem with the missing android.support
class means that you have an older version of the damaged library installed, one of which was before the class was added. Unfortunately, JavaDocs does a poor job of indicating which version of the support libraries has added new classes.
If you are using Android Studio, make sure your support-
dependencies are up to support-
and your compileSdkVersion
matches the major version number of the dependency.
If you use Eclipse, you will have to not only download the latest libraries from the SDK manager, but then remove the old library from the Eclipse project and add the latest library from your SDK installation.
source share