title: Flutter app freeze in build release, work properly in debug, androidX?
body: <p>final update: </p>
  
  <p>now everything works;</p>
  
  <p>while before I was not adding internet permission and the app worked perfectly</p>
  
  <p>(contacting API and everything), since the update I have to explicitly modify the manifest.</p>
  
  <p>Easy fix actually:</p>
  
  <pre><code>manifest xmlns:android="http://schemas.android.com/apk/res/android" 
  
  package="com.xxx.xxx"&gt; &lt;uses-permission
  
   android:name="android.permission.INTERNET"/&gt; &lt;application
  
   android:name="io.flutter.app.FlutterApplication" android:label="xxx"
  
   android:icon="@mipmap/ic_launcher"&gt; &lt;activity android:name=".MainActivity"
  
   [...]
  </code></pre>
  
  <p>if you are too experiencing the same unexpected changes of behavior in your app.</p>
  
  <p>This might be the cause.</p>
  
  <p>Thank you for your attention.</p>
  
  <hr>
  
  <p>[update 19/3/2019]:
  Facebook user "Momo Roro" described a similar behavior of its own app</p>
  
  <p>asserting that it was caused by the inability of the app</p>
  
  <p>to contact the API, it actually matches my situation,</p>
  
  <p>in fact right after the splash screen my stream should receive</p>
  
  <p>data from an API and route to a specific screen accordingly.</p>
  
  <p>Any idea why it works in debug and not in release build?</p>
  
  <hr>
  
  <p>I'm iterating an app I'm working on from a while;</p>
  
  <p>I had several release version,</p>
  
  <p>but after updating to flutter
  (I curse myself every day for that) </p>
  
  <p>the app works perfectly in debug, but freeze in release build</p>
  
  <p>(although it loads the 'homemade' splash screen)</p>
  
  <p>no errors in compile time,</p>
  
  <p>flutter doctor says ok,</p>
  
  <p>I've pin my dependencies and added this to 
  prevent androidX issues</p>
  
  <pre><code>rootProject.allprojects {
      project.configurations.all {
          resolutionStrategy.eachDependency { details -&gt;
              if (details.requested.group == 'androidx.core') {
                  details.useVersion "1.0.1"
              }
              if (details.requested.group == 'androidx.lifecycle') {
                  details.useVersion "2.0.0"
              }
              if (details.requested.group == 'androidx.versionedparcelable') {
                  details.useVersion "1.0.0"
              }
          }
      }
  }
  </code></pre>
  
  <p>I've tried: flutter clean, </p>
  
  <p>flutter build apk --target-platform=android-arm64,</p>
  
  <p>flutter build --release... nothing works</p>
  
  <p>I opened an issue on <a href="https://github.com/flutter/flutter/issues/29555" rel="nofollow noreferrer">github</a>, but
  I would appreciate if you could point me in the right direction</p>
  
  <p>here you can find some <a href="https://drive.google.com/drive/folders/1cawbJ6SWb9zLt_t2Hmfdb-kxxEXNIqby?usp=sharing" rel="nofollow noreferrer">logs</a></p>
  
  <p>thanks in advance</p>