Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Fix the error on project AppWithSetting #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions AppWithSettings/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down