title: When I add third party dependencies I get a manifest merger fail, what should I do to fix this?
body: <p>Error:Execution failed for task ':app:processDebugManifest'.</p>
  
  <blockquote>
    <p>Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support:design:26.0.2] AndroidManifest.xml:28:13-35
        is also present at [com.android.support:support-v13:26.0.1] AndroidManifest.xml:28:13-35 value=(26.0.1).
        Suggestion: add 'tools:replace="android:value"' to  element at AndroidManifest.xml:26:9-28:38 to override.
    apply plugin: 'com.android.application'</p>
  </blockquote>
  
  <p>app.gradle file</p>
  
  <pre><code>android {
      compileSdkVersion 26
      buildToolsVersion "26.0.1"
      defaultConfig {
          applicationId "com.dharquissandas.budget"
          minSdkVersion 21
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  allprojects{
      repositories{
          jcenter()
              maven{
                  url "https://maven.google.com"
              }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      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:26.+'
      compile 'com.android.support:preference-v7:23.4.0'
      compile 'com.android.support:design:26.+'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      compile 'com.android.support:support-v4:26.+'
      compile 'com.afollestad.material-dialogs:core:0.9.4.7'
      compile 'com.afollestad.material-dialogs:commons:0.9.4.7'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>android manifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest
      xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.dharquissandas.budget"&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name"
              android:theme="@style/AppTheme.NoActionBar"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".add_expense"
              android:label="@string/title_activity_add_expense"
              android:theme="@style/AppTheme.NoActionBar" /&gt;
          &lt;activity
              android:name=".add_income"
              android:label="@string/title_activity_add_income"
              android:theme="@style/AppTheme.NoActionBar" /&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>This was working and then suddenly it stopped working when I wanted to work on the app again. What should I do to fix this error?</p>