I'm developing an app where I've been using the support library fragments throughout and I stumbled upon this problem where I can't seem to add a PreferencesFragment
(for the settings) using this library?
I've found some suggestions to use v7 PreferenceFragmentCompat
, however looks like for some reason I can't add the v7
support library to my build path, therefore I can't locate the PreferenceFragmentCompat
...
I've tried rewriting the code to use regular fragments instead of the ones in support library, but I had some issues with that too
In case you're wondering, I'm developing with support library because, while reading The Big Nerd Ranch book on android programming, somewhere early on they advise always using support library for fragments.
Any suggestions on the workarounds, or should I just try to switch to non-support version?
Here are the dependencies from my build.gradle:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
}