title: Flutter build linking failed ttcIndex not found after upgrading to flutter v1.12.13
body: <p>My flutter app was working without any issue and it worked after I upgraded to flutter <code>v1.12.13+hotfix.5</code> on debug mode but I get this error when I try to build an <code>APK</code></p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: Execution failed for task ':shared_preferences:verifyReleaseResources'.</p>
    
    <blockquote>
      <p>1 exception was raised by workers:   com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource
      linking failed<br>
      D:\my-flutter-app\build\shared_preferences\intermediates\res\merged\release\values\values.xml:236:
      error: resource android:attr/fontVaria tionSettings not found.<br>
      D:\my-flutter-app\build\shared_preferences\intermediates\res\merged\release\values\values.xml:237:
      error: resource android:attr/ttcIndex not found.   error: failed
      linking references.</p>
    </blockquote></li>
    <li><p>Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>BUILD FAILED in 7s Running Gradle task 'assembleRelease'... Running
    Gradle task 'assembleRelease'... Done                       7.9s
    Gradle task assembleRelease failed with exit code 1</p>
  </blockquote>
  
  <p>My flutter doctor shows no issues</p>
  
  <blockquote>
    <p>Doctor summary (to see all details, run flutter doctor -v):</p>
    
    <p>[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows
    [Version 10.0.18362.592], locale en-US)</p>
    
    <p>[√] Android toolchain - develop for Android devices (Android SDK
    version 29.0.2)</p>
    
    <p>[√] Android Studio (version 3.5)</p>
    
    <p>[√] VS Code (version 1.41.1)</p>
    
    <p>[√] Connected device (1 available)</p>
    
    <p>• No issues found!</p>
  </blockquote>
  
  <p>I'm sure that my <code>build.gradle</code> contains <code>compileSdkVersion 28</code> which is the typical solution for this issue and everything was working before I upgrade.</p>