0

We are trying to use SwitchCompat in our android application(Eclipse). We have taken the code and procedure from the below link. Material design When we created XML file for the same, we are getting the following error.

The following classes could not be found: - android.support.v7.widget.SwitchCompat (Fix Build Path, Edit XML, Create Class)

And we are not able to find any SwitchCompat class in android.support.v7.widget under "Android Private libraries"

SwitchCompat.class

build.gradle

dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile project(':appcompat_v7') }

Your help in this regard is quite appreciable.

SDK Manager screenshot

enter image description here

Errors---R.java not generating R.java Not generating

Basati Naveen
  • 323
  • 6
  • 18

1 Answers1

1

I have updated the support library. Then removed the duplicates under (res/drawable-hdpi, res/drawable-mdpi, res/drawable-xhdpi, res/drawable-xxhdpi) and also under (bin/res/drawable-hdpi, bin/res/drawable-mdpi, bin/res/drawable-xhdpi, bin/res/drawable-xxhdpi). Updated all SDK build tools. Hope some one find it helpful.

Basati Naveen
  • 323
  • 6
  • 18