<p dir="auto">After upgrading Flutter, when I build my app I started getting following error :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Execution failed for task ':app:processDebugManifest'. [   +5 ms] &gt;
Manifest merger failed : Attribute
meta-data#android.support.VERSION@value value=(25.4.0) from
[com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35
[  +23 ms]      is also present at
[com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35
value=(26.1.0). [   +8 ms]      Suggestion: add
'tools:replace=&quot;android:value&quot;' to &lt;meta-data&gt; element at
AndroidManifest.xml:26:9-28:38 to override."><pre class="notranslate"><code class="notranslate">Execution failed for task ':app:processDebugManifest'. [   +5 ms] &gt;
Manifest merger failed : Attribute
meta-data#android.support.VERSION@value value=(25.4.0) from
[com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35
[  +23 ms]      is also present at
[com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35
value=(26.1.0). [   +8 ms]      Suggestion: add
'tools:replace="android:value"' to &lt;meta-data&gt; element at
AndroidManifest.xml:26:9-28:38 to override.
</code></pre></div>
<p dir="auto">As explained in <a href="https://stackoverflow.com/questions/43140059/add-toolsreplace-androidvalue-to-meta-data-element-at-androidmanifest" rel="nofollow">https://stackoverflow.com/questions/43140059/add-toolsreplace-androidvalue-to-meta-data-element-at-androidmanifest</a>  and<br>
<a href="https://stackoverflow.com/questions/43280871/android-getting-manifest-merger-failed-error-after-updating-to-a-new-version/44931003" rel="nofollow">https://stackoverflow.com/questions/43280871/android-getting-manifest-merger-failed-error-after-updating-to-a-new-version/44931003</a> SO answers i added the</p>
<div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith(&quot;multidex&quot;)) {
                    details.useVersion '25.4.0'
                }
            }
        }
    }"><pre class="notranslate">    configurations<span class="pl-k">.</span><span class="pl-en">all</span> {
        resolutionStrategy<span class="pl-k">.</span>eachDependency { <span class="pl-k">DependencyResolveDetails</span> <span class="pl-v">details</span> <span class="pl-k">-&gt;</span>
            <span class="pl-k">def</span> requested <span class="pl-k">=</span> details<span class="pl-k">.</span>requested
            <span class="pl-k">if</span> (requested<span class="pl-k">.</span>group <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">'</span>com.android.support<span class="pl-pds">'</span></span>) {
                <span class="pl-k">if</span> (<span class="pl-k">!</span>requested<span class="pl-k">.</span>name<span class="pl-k">.</span>startsWith(<span class="pl-s"><span class="pl-pds">"</span>multidex<span class="pl-pds">"</span></span>)) {
                    details<span class="pl-k">.</span>useVersion <span class="pl-s"><span class="pl-pds">'</span>25.4.0<span class="pl-pds">'</span></span>
                }
            }
        }
    }</pre></div>
<p dir="auto">to my app folder <code class="notranslate">build.gradle</code> :</p>
<div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    def localProperties = new Properties()
    def localPropertiesFile = rootProject.file('local.properties')
    if (localPropertiesFile.exists()) {
        localPropertiesFile.withReader('UTF-8') { reader -&gt;
            localProperties.load(reader)
        }
    }
    
    def flutterRoot = localProperties.getProperty('flutter.sdk')
    if (flutterRoot == null) {
        throw new GradleException(&quot;Flutter SDK not found. Define location with flutter.sdk in the local.properties file.&quot;)
    }
    
    apply plugin: 'com.android.application'
    apply from: &quot;$flutterRoot/packages/flutter_tools/gradle/flutter.gradle&quot;
    
    android {
        compileSdkVersion 27
    
        lintOptions {
            disable 'InvalidPackage'
        }
    
        defaultConfig {
            // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
            applicationId &quot;com.yourcompany.chatapp&quot;
            minSdkVersion 16
            targetSdkVersion 27
            versionCode 1
            versionName &quot;1.0&quot;
            testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
        }
    
        buildTypes {
            release {
                // TODO: Add your own signing config for the release build.
                // Signing with the debug keys for now, so `flutter run --release` works.
                signingConfig signingConfigs.debug
            }
        }
    }
    
    flutter {
        source '../..'
    }
    
    dependencies {
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.1'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    }
    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith(&quot;multidex&quot;)) {
                    details.useVersion '25.4.0'
                }
            }
        }
    }
    apply plugin: 'com.google.gms.google-services'
"><pre class="notranslate">    <span class="pl-k">def</span> localProperties <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-k">Properties</span>()
    <span class="pl-k">def</span> localPropertiesFile <span class="pl-k">=</span> rootProject<span class="pl-k">.</span>file(<span class="pl-s"><span class="pl-pds">'</span>local.properties<span class="pl-pds">'</span></span>)
    <span class="pl-k">if</span> (localPropertiesFile<span class="pl-k">.</span>exists()) {
        localPropertiesFile<span class="pl-k">.</span>withReader(<span class="pl-s"><span class="pl-pds">'</span>UTF-8<span class="pl-pds">'</span></span>) { <span class="pl-v">reader</span> <span class="pl-k">-&gt;</span>
            localProperties<span class="pl-k">.</span>load(reader)
        }
    }
    
    <span class="pl-k">def</span> flutterRoot <span class="pl-k">=</span> localProperties<span class="pl-k">.</span>getProperty(<span class="pl-s"><span class="pl-pds">'</span>flutter.sdk<span class="pl-pds">'</span></span>)
    <span class="pl-k">if</span> (flutterRoot <span class="pl-k">==</span> <span class="pl-c1">null</span>) {
        <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-k">GradleException</span>(<span class="pl-s"><span class="pl-pds">"</span>Flutter SDK not found. Define location with flutter.sdk in the local.properties file.<span class="pl-pds">"</span></span>)
    }
    
    apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>com.android.application<span class="pl-pds">'</span></span>
    apply <span class="pl-c1">from</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$f<span class="pl-smi">lutterRoot</span></span>/packages/flutter_tools/gradle/flutter.gradle<span class="pl-pds">"</span></span>
    
    <span class="pl-en">android</span> {
        compileSdkVersion 27
    
        lintOptions {
            disable <span class="pl-s"><span class="pl-pds">'</span>InvalidPackage<span class="pl-pds">'</span></span>
        }
    
        defaultConfig {
            <span class="pl-c"><span class="pl-c">//</span> TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).</span>
            applicationId <span class="pl-s"><span class="pl-pds">"</span>com.yourcompany.chatapp<span class="pl-pds">"</span></span>
            minSdkVersion <span class="pl-c1">16</span>
            targetSdkVersion <span class="pl-c1">27</span>
            versionCode <span class="pl-c1">1</span>
            versionName <span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span>
            testInstrumentationRunner <span class="pl-s"><span class="pl-pds">"</span>android.support.test.runner.AndroidJUnitRunner<span class="pl-pds">"</span></span>
        }
    
        buildTypes {
            release {
                <span class="pl-c"><span class="pl-c">//</span> TODO: Add your own signing config for the release build.</span>
                <span class="pl-c"><span class="pl-c">//</span> Signing with the debug keys for now, so `flutter run --release` works.</span>
                signingConfig signingConfigs<span class="pl-k">.</span>debug
            }
        }
    }
    
    <span class="pl-en">flutter</span> {
        source <span class="pl-s"><span class="pl-pds">'</span>../..<span class="pl-pds">'</span></span>
    }
    
    <span class="pl-en">dependencies</span> {
        testImplementation <span class="pl-s"><span class="pl-pds">'</span>junit:junit:4.12<span class="pl-pds">'</span></span>
        androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.test:runner:1.0.1<span class="pl-pds">'</span></span>
        androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.test.espresso:espresso-core:3.0.1<span class="pl-pds">'</span></span>
    }
    configurations<span class="pl-k">.</span><span class="pl-en">all</span> {
        resolutionStrategy<span class="pl-k">.</span>eachDependency { <span class="pl-k">DependencyResolveDetails</span> <span class="pl-v">details</span> <span class="pl-k">-&gt;</span>
            <span class="pl-k">def</span> requested <span class="pl-k">=</span> details<span class="pl-k">.</span>requested
            <span class="pl-k">if</span> (requested<span class="pl-k">.</span>group <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">'</span>com.android.support<span class="pl-pds">'</span></span>) {
                <span class="pl-k">if</span> (<span class="pl-k">!</span>requested<span class="pl-k">.</span>name<span class="pl-k">.</span>startsWith(<span class="pl-s"><span class="pl-pds">"</span>multidex<span class="pl-pds">"</span></span>)) {
                    details<span class="pl-k">.</span>useVersion <span class="pl-s"><span class="pl-pds">'</span>25.4.0<span class="pl-pds">'</span></span>
                }
            }
        }
    }
    apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>com.google.gms.google-services<span class="pl-pds">'</span></span>
</pre></div>
<p dir="auto">Now whenever i run my app i get the following Error :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error -32601 received from application: Method not found"><pre class="notranslate"><code class="notranslate">Error -32601 received from application: Method not found
</code></pre></div>
<p dir="auto">I have tried by running <code class="notranslate">flutter clean</code>, the error still persists.</p>
<p dir="auto">Here is output of <code class="notranslate">flutter doctor</code> :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel beta, v0.3.1, on Microsoft Windows [Version 10.0.16299.371], locale en-US)
    [√] Android toolchain - develop for Android devices (Android SDK 28.0.0-rc1)
    [√] Android Studio (version 3.1)
    [√] Connected devices (1 available)
    
    • No issues found!"><pre class="notranslate"><code class="notranslate">    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel beta, v0.3.1, on Microsoft Windows [Version 10.0.16299.371], locale en-US)
    [√] Android toolchain - develop for Android devices (Android SDK 28.0.0-rc1)
    [√] Android Studio (version 3.1)
    [√] Connected devices (1 available)
    
    • No issues found!
</code></pre></div>
<p dir="auto">pressing 'r' results in error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error -32601 received from application: Method not found
Hot reload was rejected:
'package:flutter/src/semantics/semantics.dart': malformed type: line 2126 pos 17: cannot resolve class 'SemanticsFlag' from 'SemanticsConfiguration'
  void _setFlag(SemanticsFlag flag, bool value) {
                ^"><pre class="notranslate"><code class="notranslate">Error -32601 received from application: Method not found
Hot reload was rejected:
'package:flutter/src/semantics/semantics.dart': malformed type: line 2126 pos 17: cannot resolve class 'SemanticsFlag' from 'SemanticsConfiguration'
  void _setFlag(SemanticsFlag flag, bool value) {
                ^
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\src\flutter\flutter\examples\flutter_gallery [master ≡ +4 ~3 -0 !]&gt; ..\..\bin\flutter run
Running &quot;flutter packages get&quot; in flutter_gallery...  3.4s
Launching lib/main.dart on Pixel in debug mode...
Initializing gradle...                                2.7s
Resolving dependencies...                            14.2s
Running 'gradlew assembleDebug'...                   20.2s
Built build\app\outputs\apk\app-debug.apk (28.8MB).
Installing build\app\outputs\apk\app.apk...          16.1s
I/FlutterActivityDelegate( 2563): onResume setting current activity to this
Syncing files to device Pixel...                      4.5s

🔥  To hot reload your app on the fly, press &quot;r&quot;. To restart the app entirely, press &quot;R&quot;.
An Observatory debugger and profiler on Pixel is available at: http://127.0.0.1:8100/
For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;.

Initializing hot reload...
Error -32601 received from application: Method not found
Hot reload was rejected:
'package:flutter/src/semantics/semantics.dart': malformed type: line 2126 pos 17: cannot resolve class 'SemanticsFlag' from 'SemanticsConfiguration'
  void _setFlag(SemanticsFlag flag, bool value) {
                ^

Try again after fixing the above error(s).
Application finished.
Terminate batch job (Y/N)? y
C:\src\flutter\flutter\examples\flutter_gallery [master ≡ +4 ~3 -0 !]&gt; ..\..\bin\flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (on Microsoft Windows [Version 10.0.14393], locale en-US, channel master)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.1)
[√] Android Studio (version 3.0)
[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
[√] Connected devices

• No issues found!
C:\src\flutter\flutter\examples\flutter_gallery [master ≡ +4 ~3 -0 !]&gt; git reflog -1
83e0ca24f (HEAD -&gt; master, upstream/master, origin/master, origin/HEAD) HEAD@{0}: pull upstream master: Fast-forward"><pre class="notranslate"><code class="notranslate">C:\src\flutter\flutter\examples\flutter_gallery [master ≡ +4 ~3 -0 !]&gt; ..\..\bin\flutter run
Running "flutter packages get" in flutter_gallery...  3.4s
Launching lib/main.dart on Pixel in debug mode...
Initializing gradle...                                2.7s
Resolving dependencies...                            14.2s
Running 'gradlew assembleDebug'...                   20.2s
Built build\app\outputs\apk\app-debug.apk (28.8MB).
Installing build\app\outputs\apk\app.apk...          16.1s
I/FlutterActivityDelegate( 2563): onResume setting current activity to this
Syncing files to device Pixel...                      4.5s

🔥  To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on Pixel is available at: http://127.0.0.1:8100/
For a more detailed help message, press "h". To quit, press "q".

Initializing hot reload...
Error -32601 received from application: Method not found
Hot reload was rejected:
'package:flutter/src/semantics/semantics.dart': malformed type: line 2126 pos 17: cannot resolve class 'SemanticsFlag' from 'SemanticsConfiguration'
  void _setFlag(SemanticsFlag flag, bool value) {
                ^

Try again after fixing the above error(s).
Application finished.
Terminate batch job (Y/N)? y
C:\src\flutter\flutter\examples\flutter_gallery [master ≡ +4 ~3 -0 !]&gt; ..\..\bin\flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (on Microsoft Windows [Version 10.0.14393], locale en-US, channel master)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.1)
[√] Android Studio (version 3.0)
[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
[√] Connected devices

• No issues found!
C:\src\flutter\flutter\examples\flutter_gallery [master ≡ +4 ~3 -0 !]&gt; git reflog -1
83e0ca24f (HEAD -&gt; master, upstream/master, origin/master, origin/HEAD) HEAD@{0}: pull upstream master: Fast-forward
</code></pre></div>