<p dir="auto">We should combine those duplicate code pieces into a single one. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="351739129" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/20751" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/20751/hovercard?comment_id=211378022&amp;comment_type=review_comment" href="https://github.com/flutter/flutter/pull/20751#discussion_r211378022">#20751 (comment)</a></p>
<p dir="auto">I've experienced this issue in two different apps. When building release apk in first app, the app builds successfully. But as soon as the app opens, it crashed. I removed below line i added before in <strong>android/gradle.properties</strong> and rebuild.</p>
<p dir="auto"><code class="notranslate">extra-gen-snapshot-options=--obfuscate</code></p>
<p dir="auto">App worked without problem later.</p>
<p dir="auto">Yesterday i faced the same issue with a new app. Now the app is running in some of the devices i have. I published the app to play store. The app is incompatible with almost all phones except mine. I disabled obfuscation and uploaded patched version. Now it is working fine.</p>