Reputation: 323
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"
build.gradle
dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile project(':appcompat_v7') }
Your help in this regard is quite appreciable.
SDK Manager screenshot
Errors---R.java not generating
Upvotes: 0
Views: 213
Reputation: 323
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.
Upvotes: 1