diff --git a/AppWithSettings/app/build.gradle b/AppWithSettings/app/build.gradle index 659a455..f156ce4 100644 --- a/AppWithSettings/app/build.gradle +++ b/AppWithSettings/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 25 - buildToolsVersion "25.0.0" + buildToolsVersion "25.0.3" defaultConfig { applicationId "com.example.android.appwithsettings" minSdkVersion 15 @@ -24,9 +24,9 @@ dependencies { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) - compile 'com.android.support:appcompat-v7:25.0.1' - compile 'com.android.support:design:25.0.1' - compile 'com.android.support:support-v4:25.0.1' + compile 'com.android.support:appcompat-v7:25.3.1' + compile 'com.android.support:design:25.3.1' + compile 'com.android.support:support-v4:25.3.1' testCompile 'junit:junit:4.12' - compile 'com.android.support:preference-v7:25.0.1' + compile 'com.android.support:preference-v7:25.3.1' } diff --git a/AppWithSettings/app/src/main/java/com/example/android/appwithsettings/MainActivity.java b/AppWithSettings/app/src/main/java/com/example/android/appwithsettings/MainActivity.java index ef89f29..071e447 100644 --- a/AppWithSettings/app/src/main/java/com/example/android/appwithsettings/MainActivity.java +++ b/AppWithSettings/app/src/main/java/com/example/android/appwithsettings/MainActivity.java @@ -64,7 +64,7 @@ public void onClick(View view) { // The third argument is a boolean that indicates whether the default values // should be set more than once. When false, the system sets the default values // only if this method has never been called in the past. - PreferenceManager.setDefaultValues(this, R.xml.preferences, false); + android.support.v7.preference.PreferenceManager.setDefaultValues(this, R.xml.preferences, false); // Read settings SharedPreferences sharedPref =